Skip to content

Commit d114014

Browse files
committed
fixed buh in SquareKata
1 parent 9ec03e3 commit d114014

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/teachingkidsprogramming/recipes/completed/section01forloops/KataQuestions/SquareToIncreasingThickHexagonMultiColor_05.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// How would you make a hexagon...
88
// with 20px thick sides...
99
// and with randomly colored lines
10-
// and with side lengths of 25 that increase by 2x each time?
10+
// and with side lengths of 10 that increase by 2x each time?
1111
//
1212
// Write out the steps in English
1313
// Then translate the steps into code

src/main/java/org/teachingkidsprogramming/recipes/completed/section01forloops/KataQuestions/SquareToIncreasingThickHexagonMultiColor_ANSWER_06.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// How would you make a hexagon...
88
// with 20px thick sides...
99
// and with randomly colored lines
10-
// and with side lengths of 25 that increase by 2x each time?
10+
// and with side lengths of 10 that increase by 2x each time?
1111
//
1212
public class SquareToIncreasingThickHexagonMultiColor_ANSWER_06
1313
{
@@ -20,7 +20,7 @@ public static void main(String[] args) throws Exception
2020
for (int i = 0; i < sides; i++)
2121
{
2222
Tortoise.setPenColor(PenColors.getRandomColor());
23-
Tortoise.move(25 * i);
23+
Tortoise.move(10 * 2 * i);
2424
Tortoise.turn(360 / sides);
2525
}
2626
}

0 commit comments

Comments
 (0)