Skip to content

Commit 40c5d5a

Browse files
committed
added new kata w/@dcoopersmith
1 parent 55e078f commit 40c5d5a

File tree

6 files changed

+36
-4
lines changed

6 files changed

+36
-4
lines changed

src/main/java/org/teachingkidsprogramming/recipes/completed/section02methods/KataQuestions/HousesToAPointyRoof_01.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ public static void drawHouse(int height)
2626
{
2727
Tortoise.setPenColor(PenColors.Grays.LightGray);
2828
Tortoise.move(height);
29-
drawRoof();
29+
drawFlatRoof();
3030
Tortoise.move(height);
3131
Tortoise.turn(-90);
3232
Tortoise.move(20);
3333
Tortoise.turn(-90);
3434
}
35-
private static void drawRoof()
35+
private static void drawFlatRoof()
3636
{
3737
Tortoise.turn(90);
3838
Tortoise.move(30);

src/main/java/org/teachingkidsprogramming/recipes/completed/section02methods/KataQuestions/HousesToASlantedRoof_02.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ private static void drawPointyRoof()
4040
Tortoise.move(30);
4141
Tortoise.turn(45);
4242
}
43+
@SuppressWarnings("unused")
44+
private static void drawFlatRoof()
45+
{
46+
Tortoise.turn(90);
47+
Tortoise.move(30);
48+
Tortoise.turn(90);
49+
}
4350
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.teachingkidsprogramming.recipes.completed.section03ifs.KataQuestions;
2+
3+
//------------MiniAdventure Kata---------------//
4+
// Write your adventure
5+
// Write each of the English line comments (use at least 8 line comments)
6+
// Number each comment line at the end
7+
// Verify - step one - Translate EACH comment line into code
8+
// Verify - step two - Run your code after each line
9+
public class MiniAdventure
10+
{
11+
//TODO: write comments and then code here
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.teachingkidsprogramming.recipes.completed.section03ifs.KataQuestions;
2+
3+
//------------ReverseHiLow Kata---------------//
4+
// The user knows the answer, the computer gets 8 guesses to determine the answer
5+
// You tell the computer whether its guess is too high or too low
6+
// Write each of the English line comments (use at least 8 line comments)
7+
// Number each comment line at the end
8+
// Verify - step one - Translate EACH comment line into code
9+
// Verify - step two - Run your code after each line
10+
public class ReverseHiLow
11+
{
12+
//TODO: write comments and then code here
13+
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section03ifs/KataQuestions/CompleteSnowflake.java renamed to src/main/java/org/teachingkidsprogramming/section05recursion/KataQuestions/CompleteSnowflake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.teachingkidsprogramming.recipes.completed.section03ifs.KataQuestions;
1+
package org.teachingkidsprogramming.section05recursion.KataQuestions;
22

33
//------------Snowflake Kata---------------//
44
// Use the Tortoise to draw a snowflake using triangles

src/main/java/org/teachingkidsprogramming/recipes/completed/section03ifs/KataQuestions/CompleteSnowflakeAnswer.java renamed to src/main/java/org/teachingkidsprogramming/section05recursion/KataQuestions/CompleteSnowflakeAnswer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.teachingkidsprogramming.recipes.completed.section03ifs.KataQuestions;
1+
package org.teachingkidsprogramming.section05recursion.KataQuestions;
22

33
import org.teachingextensions.logo.Tortoise;
44
import org.teachingextensions.logo.utils.ColorUtils.PenColors;

0 commit comments

Comments
 (0)