Skip to content

Commit ad77d59

Browse files
committed
update knotted ring numbering
1 parent 39e1450 commit ad77d59

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/main/java/org/teachingkidsprogramming/recipes/completed/section04mastery/KnottedRing.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ public static void main(String[] args)
1212
// Make the tortoise move as fast as possible --#4
1313
Tortoise.setSpeed(10);
1414
createColorPalette();
15-
// Do the following 30 times --#10.1
15+
// Do the following 30 times --#9.1
1616
for (int i = 0; i < 30; i++)
1717
{
1818
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
1919
Tortoise.setPenColor(ColorWheel.getNextColor());
20-
// drawOctagonWithOverlap (recipe below) --#8.0
20+
// drawOctagonWithOverlap (recipe below) --#7.0
2121
drawOctagonWithOverlap();
22-
// Turn the tortoise 1/30th of 360 degrees to the right --#9
22+
// Turn the tortoise 1/30th of 360 degrees to the right --#8
2323
Tortoise.turn(360.0 / 30);
24-
// Turn the tortoise 5 more degrees to the right --#11
24+
// Turn the tortoise 5 more degrees to the right --#10
2525
Tortoise.turn(5);
26-
// End Repeat --#10
26+
// End Repeat --#9.2
2727
}
2828
}
2929
private static void createColorPalette()
@@ -39,7 +39,7 @@ private static void createColorPalette()
3939
}
4040
private static void drawOctagonWithOverlap()
4141
{
42-
// ------------- Recipe for drawOctagonWithOverlap --#7.1
42+
// ------------- Recipe for drawOctagonWithOverlap --#6.1
4343
// Do the following 8 + 1 times --#3.1
4444
for (int i = 0; i < 9; i++)
4545
{
@@ -49,6 +49,6 @@ private static void drawOctagonWithOverlap()
4949
Tortoise.turn(360.0 / 8);
5050
}
5151
// End Repeat --#3.2
52-
// ------------- End of drawOctagonWithOverlap recipe --#7.2
52+
// ------------- End of drawOctagonWithOverlap recipe --#6.2
5353
}
5454
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ public static void main(String[] args)
1111
Tortoise.show();
1212
// Make the tortoise move as fast as possible --#4
1313
createColorPalette();
14-
// Do the following 30 times --#10.1
14+
// Do the following 30 times --#9.1
1515
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
16-
// drawOctagonWithOverlap (recipe below) --#8.0
17-
// ------------- Recipe for drawOctagonWithOverlap --#7.1
16+
// drawOctagonWithOverlap (recipe below) --#7.0
17+
// ------------- Recipe for drawOctagonWithOverlap --#6.1
1818
// Do the following 8 + 1 times --#3.1
1919
// Move the tortoise 110 pixels --#1
2020
// Turn the tortoise 1/8th of 360 degrees to the right --#2
2121
// End Repeat --#3.2
22-
// ------------- End of drawOctagonWithOverlap recipe --#7.2
23-
// Turn the tortoise 1/30th of 360 degrees to the right --#9
24-
// Turn the tortoise 5 more degrees to the right --#11
25-
// End Repeat --#10.2
22+
// ------------- End of drawOctagonWithOverlap recipe --#6.2
23+
// Turn the tortoise 1/30th of 360 degrees to the right --#8
24+
// Turn the tortoise 5 more degrees to the right --#10
25+
// End Repeat --#9.2
2626
}
2727
private static void createColorPalette()
2828
{

0 commit comments

Comments
 (0)