Skip to content

Commit 07d2c72

Browse files
committed
corrected for PenColors / SimpleSquare
1 parent ca5646e commit 07d2c72

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/org/teachingkidsprogramming/recipes/completed/SimpleSquare.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static void main(String[] args) throws Exception
1515
for (int i = 1; i <= 4; i++)
1616
{
1717
// Change the color of the line the tortoise draws to "blue" --#4
18-
Tortoise.setPenColor(Colors.getRandomColor());
18+
Tortoise.setPenColor(Colors.Blues.Blue);
1919
// Move the tortoise 50 pixels --#2
2020
Tortoise.move(50);
2121
// Turn the tortoise to the right (90 degrees) --#3

src/org/teachingkidsprogramming/recipes/completed/SimpleSquareCodenvy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static void main(String[] args) throws Exception
1515
for (int i = 1; i <= 4; i++)
1616
{
1717
// Change the pen color of the line the tortoise draws to "blue" --#4
18-
Tortoise.setPenColor(PenColors.Reds.Red);
18+
Tortoise.setPenColor(PenColors.Blues.Blue);
1919
// Move the tortoise 50 pixels --#2
2020
Tortoise.move(50);
2121
// Turn the tortoise to the right (90 degrees) --#3

0 commit comments

Comments
 (0)