Skip to content

Commit 2ac2f37

Browse files
lynnlangitjamesrcounts
authored andcommitted
added English comments for Kata Solutions w @samanthalangit
1 parent 3445f36 commit 2ac2f37

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

src/main/java/org/teachingkidsprogramming/recipes/completed/section09final/RectangleKata.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,19 @@ private static void drawTopOrBottom()
2626
Tortoise.move(150);
2727
Tortoise.turn(90);
2828
}
29+
//
30+
//TIP: Here's one possible set of English comments to solve this challenge
31+
//
32+
// Show the tortoise
33+
// Make the tortoise move as fast as possible
34+
// Change the pen color of the line the tortoise draws to blue
35+
// Do the following 2 times
36+
// Draw one side
37+
// Draw a line of 75 pixels
38+
// Turn to the right
39+
// Draw the top or bottom
40+
// Draw a line of 150 pixels
41+
// Turn to the right
42+
// Repeat
43+
//
2944
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section09final/WheelKata.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,21 @@ private static void drawASide()
3636
Tortoise.move(150);
3737
Tortoise.turn(125);
3838
}
39+
//
40+
//TIP: Here's one possible set of English comments to solve this challenge
41+
//
42+
// Show the tortoise
43+
// Make the tortoise move as fast as possible
44+
// Set the start position to 175 on the Y-axis
45+
// Change the pen color of the line the tortoise draws to blue
46+
// Set the pen width to 5 pixels
47+
// Do the following 20 times
48+
// Draw one side 2 times
49+
// Draw a line of 150 pixels
50+
// Turn to the right 125 degrees
51+
// Draw line of 150 pixels
52+
// Turn to the right
53+
// Repeat
54+
// Move 2 pixels
55+
//
3956
}

0 commit comments

Comments
 (0)