Skip to content

Commit b405b32

Browse files
committed
updated English in PentagonCrazyQuiz w/@kimschmidtsbrain
1 parent c25140b commit b405b32

9 files changed

Lines changed: 29 additions & 26 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.teachingextensions.logo.Turtle;
88
import org.teachingextensions.logo.utils.TortoiseUtils;
99

10-
@SuppressWarnings("unused")
1110
public class DeepDive01ForLoops
1211
{
1312
// How to do deep dive:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void main(String[] args)
1616
// Do the following 30 times --#10
1717
for (int i = 0; i < 30; i++)
1818
{
19-
// Change the pen color of the line the tortoise draws to a random color from the color wheel --#5
19+
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
2020
Tortoise.setPenColor(ColorWheel.getNextColor());
2121
// drawOctagonWithOverlap (recipe below) --#8
2222
drawOctagonWithOverlap();

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,26 @@ public class PentagonCrazyQuiz extends PentagonQuizAdapter
1111
public void question1()
1212
{
1313
// Question 1
14-
thread();
14+
createAStitch();
1515
}
16-
private void thread()
16+
private void createAStitch()
1717
{
18-
// thread (recipe below)
19-
// ------------- Recipe for thread
20-
// that moves the tortoise 6 pixels
18+
// createAStitch (recipe below)
19+
// ------------- Recipe for createAStitch
20+
// Move the tortoise 6 pixels
2121
Tortoise.move(6);
22-
// ------------- End of thread recipe
22+
// ------------- End of createAStitch recipe
2323
}
2424
@Override
2525
public void question2()
2626
{
2727
// Do the following 76 times
2828
for (int i = 0; i < 76; i++)
2929
{
30-
// call stitch
31-
stitch();
32-
}// Repeat
30+
// Call sewAStitch
31+
sewAStitch();
32+
// Repeat
33+
}
3334
}
3435
@Override
3536
public void question3()

src/main/java/org/teachingkidsprogramming/recipes/quizzes/graders/PentagonCrazyQuizGrader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private boolean gradeThread()
6161
Turtle turtle = QuizUtils.createTestTurtle();
6262
TortoiseUtils.setTurtle(turtle);
6363
TortoiseUtils.setOrientation(0, 0, 90);
64-
quiz.callThread();
64+
quiz.callCreateAStitch();
6565
return NumberUtils.equals(TortoiseUtils.getTurtle().getX(), 6, 0.005);
6666
}
6767
private boolean grade2Stitch76()
@@ -111,9 +111,9 @@ public void stitch()
111111
Tortoise.setPenColor(getSafeColor());
112112
Tortoise.turn(wheel.next());
113113
Tortoise.setPenDown();
114-
quiz.callThread();
114+
quiz.callCreateAStitch();
115115
Tortoise.setPenUp();
116-
quiz.callThread();
116+
quiz.callCreateAStitch();
117117
}
118118
}
119119
}

src/main/java/org/teachingkidsprogramming/recipes/quizzes/graders/PentagonQuizAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
public class PentagonQuizAdapter
44
{
55
public PentagonCrazyQuizGrader grader;
6-
public void callThread()
6+
public void callCreateAStitch()
77
{
8-
HousesQuizAdapter.call(this, "thread");
8+
HousesQuizAdapter.call(this, "createAStitch");
99
}
1010
public void question2()
1111
{
@@ -16,7 +16,7 @@ public void question3()
1616
public void question4()
1717
{
1818
}
19-
public void stitch()
19+
public void sewAStitch()
2020
{
2121
grader.stitch();
2222
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args)
2121
// Add tomato to the color wheel --#19
2222
// ------------- End of createColorPalette recipe --#7.3
2323
// Do the following 30 times --#11.1
24-
// Change the pen color of the line the tortoise draws to a random color from the color wheel --#5
24+
// Change the pen color of the line the tortoise draws to the next color from the color wheel --#5
2525
// drawOctagonWithOverlap (recipe below) --#9
2626
// ------------- Recipe for drawOctagonWithOverlap --#8.1
2727
// Do the following 8 + 1 times --#3.1

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,24 @@ public class PentagonCrazyQuiz extends PentagonQuizAdapter
88
public void question1()
99
{
1010
// Question 1
11-
// thread (recipe below)
12-
// ------------- Recipe for thread
13-
// that moves the tortoise 6 pixels
14-
// ------------- End of thread recipe
11+
// createAStitch (recipe below)
12+
// ------------- Recipe for createAStitch
13+
// Move the tortoise 6 pixels
14+
// ------------- End of createAStitch recipe
1515
}
16+
@Override
1617
public void question2()
1718
{
1819
// Do the following 76 times
19-
// call stitch
20+
// Call sewAStitch
2021
// Repeat
2122
}
23+
@Override
2224
public void question3()
2325
{
2426
// Add lime to the color wheel
2527
}
28+
@Override
2629
public void question4()
2730
{
2831
// Add red to the color wheel

src/main/java/org/teachingkidsprogramming/section09final/DeepDive09.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
//This deepdive is in progress!
1010
@SuppressWarnings("unused")
11-
public class DeepDive08TDD
11+
public class DeepDive09
1212
{
1313
// How to do deep dive:
1414
// Step 1: Select the method name (stringsCanBeArrays on line 24) Press the Run Button

src/test/java/org/teachingkidsprogramming/recipes/quizzes/tests/PentagonCrazyQuizTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void question2()
3535
for (int i = 0; i < 76; i++)
3636
{
3737
// Quiz.Stitch()
38-
stitch();
38+
sewAStitch();
3939
}
4040
}
4141
@Override
@@ -74,7 +74,7 @@ public void question2()
7474
{
7575
for (int i = 0; i < 50; i++)
7676
{
77-
stitch();
77+
sewAStitch();
7878
}
7979
}
8080
@Override

0 commit comments

Comments
 (0)