Skip to content

Commit ebc85a9

Browse files
committed
updated TriangleShell English w/Matt
1 parent 722fbe9 commit ebc85a9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/org/teachingkidsprogramming/recipes/completed/section02methods/TriangleShell.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.teachingkidsprogramming.section02methods;
22

3+
34
@SuppressWarnings("unused")
45
public 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

0 commit comments

Comments
 (0)