Skip to content

Commit 31aee2c

Browse files
committed
Changed to 'End Repeat' in all recipes
1 parent b2d71af commit 31aee2c

File tree

29 files changed

+51
-56
lines changed

29 files changed

+51
-56
lines changed

src/main/java/org/teachingkidsprogramming/recipes/completed/section01forloops/DoubleLoop.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public static void main(String[] args)
3838
Tortoise.move(j * 8);
3939
// Turn the tortoise 1/5 of 360 degrees to the right --#6
4040
Tortoise.turn(360 / 5);
41-
// Repeat --#7.2
41+
// End Repeat --#7.2
4242
}
4343
//
4444
// Hide the Tortoise --#10
4545
Tortoise.hide();
4646
Tortoise.getBackgroundWindow().setBackground(PenColors.Yellows.PeachPuff);
4747
}
48-
// Repeat --#3.2
48+
// End Repeat --#3.2
4949
// Set the tortoise x position to 300 --#15.1
5050
Tortoise.setX(300);
5151
// Set the tortoise y position to 200 --#15.2
@@ -59,7 +59,7 @@ public static void main(String[] args)
5959
Tortoise.move(25);
6060
// Turn the tortoise 1/5 of 360 degrees to the right --#13
6161
Tortoise.turn(360 / 5);
62-
// Repeat --#12.2
62+
// End Repeat --#12.2
6363
}
6464
}
6565
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section01forloops/SimpleSquare.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) throws Exception
2222
// Turn the tortoise to the right (90 degrees) --#3
2323
Tortoise.turn(90);
2424
}
25-
// Repeat --#5.2
25+
// End Repeat --#5.2
2626
//
2727
// (Optional): Sign your work using the Virtual Proctor
2828
// See your work at http://virtualproctor.tkpjava.org

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void main(String[] args)
2424
// Turn the tortoise 1/60th of 360 degrees to the right --#11
2525
Tortoise.turn(360.0 / 60);
2626
}
27-
// Repeat --#8
27+
// End Repeat --#8
2828
}
2929
private static void drawTriangle()
3030
{
@@ -37,7 +37,7 @@ private static void drawTriangle()
3737
// Turn the tortoise 1/3rd of 360 degrees --#2
3838
Tortoise.turn(360.0 / 3);
3939
}
40-
// Repeat --#3
40+
// End Repeat --#3
4141
// ------------- End of drawTriangle recipe --#5
4242
}
4343
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section03ifs/ConcentricLoop.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public static void main(String[] args)
3232
Tortoise.turn(1);
3333
// Change the width of the line that the tortoise draws to 1/100th of the current line --#9
3434
Tortoise.setPenWidth(j / 100);
35-
// Repeat --#8.2
35+
// End Repeat --#8.2
3636
}
3737
}
38-
// Repeat --#3.2
38+
// End Repeat --#3.2
3939
}
4040
}
4141
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section03ifs/HiLow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class HiLow
99
public static void main(String[] args)
1010
{
1111
// Choose a random number between 1 and 100 --#4.1 (fake!) & --#13 ***Math does not permit the generation of a random number between an interval
12-
//int answer = NumberUtils.getRandomInt(1, 100);
12+
// int answer = NumberUtils.getRandomInt(1, 100);
1313
int answer = 12;
1414
// Do the following 8 times --#9
1515
for (int i = 0; i < 8; i++)

src/main/java/org/teachingkidsprogramming/recipes/completed/section03ifs/KataQuestions/ReverseHiLow_Answer.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
//Your user knows the answer, the computer gets 8 guesses to determine the answer
66
//You tell the computer whether its guess is too high or too low
7-
//Write each of the English line comments (use at least 8 line comments)
8-
//Number each comment line at the end
9-
//Verify - step one - Translate EACH comment line into code
10-
//Verify - step two - Run your code after each line
117
public class ReverseHiLow_Answer
128
{
139
public static void main(String[] args)

src/main/java/org/teachingkidsprogramming/recipes/completed/section04mastery/BackgroundPhoto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args)
3535
Tortoise.turn(360 / 4);
3636
// Turn the tortoise 1 more degree --#5
3737
Tortoise.turn(1);
38-
// Repeat --#7.2
38+
// End Repeat --#7.2
3939
}
4040
}
4141
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section04mastery/KnottedRing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void main(String[] args)
2323
Tortoise.turn(360.0 / 30);
2424
// Turn the tortoise 5 more degrees to the right --#11
2525
Tortoise.turn(5);
26-
// Repeat --#10
26+
// End Repeat --#10
2727
}
2828
}
2929
private static void createColorPalette()
@@ -48,7 +48,7 @@ private static void drawOctagonWithOverlap()
4848
// Turn the tortoise 1/8th of 360 degrees to the right --#2
4949
Tortoise.turn(360.0 / 8);
5050
}
51-
// Repeat --#3.2
51+
// End Repeat --#3.2
5252
// ------------- End of drawOctagonWithOverlap recipe --#7.2
5353
}
5454
}

src/main/java/org/teachingkidsprogramming/recipes/completed/section04mastery/PentagonCrazyQuiz.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void question2()
2929
{
3030
// Call sewAStitch
3131
sewAStitch();
32-
// Repeat
32+
// End Repeat
3333
}
3434
}
3535
@Override

src/main/java/org/teachingkidsprogramming/recipes/completed/section05recursion/TurtleTreeKataQuestion.java renamed to src/main/java/org/teachingkidsprogramming/recipes/completed/section05recursion/KataQuestions/TurtleTreeKataQuestion.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.section05recursion;
1+
package org.teachingkidsprogramming.recipes.completed.section05recursion.KataQuestions;
22

33
import java.awt.Color;
44
import java.util.HashMap;

0 commit comments

Comments
 (0)