Skip to content

Commit 5530e8c

Browse files
committed
Refactor for PenColors
1 parent cd75412 commit 5530e8c

16 files changed

Lines changed: 33 additions & 33 deletions

File tree

0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section01forloops/SimpleSquare.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package org.teachingkidsprogramming.section01forloops;
22

3-
43
public class SimpleSquare
54
{
65
public static void main(String[] args) throws Exception
76
{
87
// Show the tortoise --#1
98
// Make the tortoise move as fast as possible --#6
109
// Do the following 4 times --#5.1
11-
// Change the color of the line the tortoise draws to "blue" --#4
10+
// Change the pen color of the line the tortoise draws to "blue" --#4
1211
// Move the tortoise 50 pixels --#2
1312
// Turn the tortoise to the right (90 degrees) --#3
1413
// Repeat --#5.2

TeachingKidsProgramming/src/org/teachingkidsprogramming/section01forloops/SimpleSquareQuiz.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void question2()
1515
}
1616
public void question3()
1717
{
18-
// Change the color the tortoise draws to yellow
18+
// Change the pen color the tortoise draws to yellow
1919
}
2020
public void question4()
2121
{

TeachingKidsProgramming/src/org/teachingkidsprogramming/section01forloops/Spiral.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static void main(String[] args)
1010
// Add Violet to the Color Wheel --#8
1111
// Add Blue Violet to the Color Wheel --#9
1212
// Do the following 75 times --#3
13-
// Change the color of the line the tortoise draws the next color on the Color Wheel --#6
13+
// Change the pen color of the line the tortoise draws the next color on the Color Wheel --#6
1414
// Move the tortoise 5 times the current line number you are drawing --#5
1515
// Turn the tortoise 1/3 of 360 degrees to the right --#2
1616
// Repeat --#3

TeachingKidsProgramming/src/org/teachingkidsprogramming/section02methods/FourSquare.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static void main(String[] args)
1010
// drawSquare (recipe below) --#6
1111
// ------------- Recipe for drawSquare --#6
1212
// Do the following 4 times --#5
13-
// Change the color of the line the tortoise draws to a random color --#3
13+
// Change the pen color of the line the tortoise draws to a random color --#3
1414
// Move the tortoise 50 pixels --#2
1515
// Turn the tortoise 90 degrees to the right --#4
1616
// Repeat --#5

TeachingKidsProgramming/src/org/teachingkidsprogramming/section02methods/Houses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String[] args)
99
// The current height is 40 --#1.2
1010
// drawHouse (recipe below) --#9
1111
// ------------- Recipe for drawHouse --#9
12-
// Change the color of the line the tortoise draws to lightGray --#15
12+
// Change the pen color of the line the tortoise draws to lightGray --#15
1313
// Move the tortoise the height of a house --#1.1
1414
// Turn the tortoise 90 degrees to the right --#2
1515
// Move the tortoise 30 pixels --#3

TeachingKidsProgramming/src/org/teachingkidsprogramming/section02methods/TriangleShell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static void main(String[] args)
88
// Show the tortoise --#1
99
// Make the tortoise go as fast as possible --#7
1010
// Do the following 60 times --#8.1
11-
// Change the color of the line the tortoise draws to a random color --#10
11+
// Change the pen color of the line the tortoise draws to a random color --#10
1212
// Increase the current length of the side by 4 pixels --#9
1313
// drawTriangle (recipe below) --#6
1414
// ------------- Recipe for drawTriangle --#5

TeachingKidsProgramming/src/org/teachingkidsprogramming/section03ifs/ChooseYourOwnAdventure.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public static void main(String[] args)
1010
// animateStartStory (recipe below) --#38
1111
// ------------- Recipe for animateStartStory --#38
1212
// Show the Tortoise --#37
13-
// The current color is black --#39.2
13+
// The current pen color is black --#39.2
1414
// Do the following 25 times --#41
15-
// Turn the background to the current color --#39.1
16-
// lighten the current color --#42
15+
// Turn the background to the current pen color --#39.1
16+
// lighten the current pen color --#42
1717
// wait for 100 milliseconds --#40
1818
// Repeat --#41
1919
// ------------- End of animateStartStory recipe --#38

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/DigiFlower.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ public static void main(String[] args)
66
{
77
// Show the tortoise --#1
88
// Make the tortoise move as fast as possible --#7
9-
// Make the background silver --#8
9+
// Make the background silver (HINT: Use PenColors) --#8
1010
// Make the line the tortoise draws 3 pixels wide --#20
1111
// createColorPalette (recipe below) --#9
1212
// Do the following 15 times --#19.1
1313
// drawOctogon (recipe below) --#10
1414
// Turn the tortoise 1/15th of 360 degrees to the right --#18
1515
// Repeat --#19.2
1616
// ------------- Recipe for createColorPalette --#9
17-
// Color 1 is red --#3
18-
// Color 2 is dark orange --#11
19-
// Color 3 is gold --#12
20-
// Color 4 is yellow --#13
17+
// Pen Color 1 is red --#3
18+
// Pen Color 2 is dark orange --#11
19+
// Pen Color 3 is gold --#12
20+
// Pen Color 4 is yellow --#13
21+
//
2122
// Add color 1 to the color wheel --#3.1
2223
// Add color 2 to the color wheel --#11.1
2324
// Add color 3 to the color wheel --#12.1
@@ -28,7 +29,7 @@ public static void main(String[] args)
2829
// Add color 1 to the color wheel --#17
2930
// ------------- Recipe for drawOctogon --#10
3031
// Do the following 8 times --#6.1
31-
// Change the color of the line the tortoise draws to the next color on the color wheel --#4
32+
// Change the pen color of the line the tortoise draws to the next color on the color wheel --#4
3233
// Move the tortoise 50 pixels --#2
3334
// Turn the tortoise 1/8th of 360 degrees to the right --#5
3435
// Repeat --#6.2

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/KnottedRing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public static void main(String[] args)
66
{
77
// Make the tortoise move as fast as possible --#4
88
// createColorPalette (recipe below) --#7
9-
// ------------- Recipe for createColorPalette --#7
9+
// ------------- Recipe for createColorPalette (HINT: Use PenColors)--#7
1010
// Add hot pink to the color wheel --#6
1111
// Add red to the color wheel --#13
1212
// Add fuchsia to the color wheel --#14
@@ -17,7 +17,7 @@ public static void main(String[] args)
1717
// Add tomato to the color wheel --#19
1818
// ------------- End of createColorPalette recipe --#7
1919
// Do the following 30 times --#11
20-
// Change the color of the line the tortoise draws to a random color from the color wheel --#5
20+
// Change the pen color of the line the tortoise draws to a random color from the color wheel --#5
2121
// drawOctagonWithOverlap (recipe below) --#9
2222
// ------------- Recipe for drawOctagonWithOverlap --#8
2323
// Do the following 8 + 1 times --#3

0 commit comments

Comments
 (0)