File tree Expand file tree Collapse file tree
src/main/java/org/teachingkidsprogramming
recipes/completed/section02methods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static void main(String[] args)
2222 // drawTriangle (recipe below) --#6
2323 drawTriangle ();
2424 // Turn the tortoise 1/60th of 360 degrees to the right --#11
25- Tortoise .turn (306 .0 / 60 );
25+ Tortoise .turn (360 .0 / 60 );
2626 }
2727 // Repeat --#8
2828 }
@@ -32,7 +32,7 @@ private static void drawTriangle()
3232 // Do the following 3 times --#3
3333 for (int i = 0 ; i < 3 ; i ++)
3434 {
35- // Move the tortoise the current length of a side --#4
35+ // Move the tortoise using the current length --#4
3636 Tortoise .move (length );
3737 // Turn the tortoise 1/3rd of 360 degrees --#2
3838 Tortoise .turn (360.0 / 3 );
Original file line number Diff line number Diff line change 11package org .teachingkidsprogramming .section02methods ;
22
3+
34@ SuppressWarnings ("unused" )
45public class TriangleShell
56{
@@ -15,7 +16,7 @@ public static void main(String[] args)
1516 //
1617 // ------------- Recipe for drawTriangle --#5.2
1718 // Do the following 3 times --#3.1
18- // Move the tortoise the current length of a side --#4
19+ // Move the tortoise using the current length --#4
1920 // Turn the tortoise 1/3rd of 360 degrees --#2
2021 // Repeat --#3.2
2122 // ------------- End of drawTriangle recipe --#5.3
You can’t perform that action at this time.
0 commit comments