File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## What you will make
22
3- Display the word 'Hello' on the screen
3+ Create a turtle race program with four racers, numbered lanes, and random movement across the track.
44
5- --- print-only ---
5+ Run the project to watch the turtles race across the screen and see which one reaches the finish line first.
66
7- ![ An archery target with a hit point on the outer circle. The text 'You hit the outer circle, 50 points!' is displayed underneath ] ( images/blue-points.png ) { : width ="640px"}
7+ < div class = " c-project-output " >
88
9- --- /print-only ---
9+ ![ Finished turtle race project ] ( images/step_8.png )
1010
11- ### You will:
12- - print() text, including emojis 😃, and get input() ⌨️ from the user
13- - Store text and numbers in variables
14- - Use functions to organise your code
15-
16- --- no-print ---
17-
18- Click the ** Run** button below to start the game. When the dot appears on the target 🎯, click the mouse (or tap on your tablet) to fire your arrow.
19-
20- <iframe src =" https://editor.raspberrypi.org/en/embed/viewer/target-practice-solution " width =" 400 " height =" 710 " frameborder =" 0 " marginwidth =" 0 " marginheight =" 0 " allowfullscreen >
21- </iframe >
22-
23- --- /no-print ---
11+ </div >
Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ copyedit: false
77last_tested : " 2025-01-01"
88landing : true
99steps :
10- - title : Step 1
11- - title : Step 2
10+ - title : Add a turtle
11+ - title : Add another turtle
1212 completion :
1313 - engaged
14- - title : Step 3
15- - title : Step 4
16- - title : Step 5
17- - title : Step 6
18- - title : Step 7
19- - title : Step 8
14+ - title : Add a third turtle
15+ - title : Add the fourth turtle
16+ - title : Get the track pen ready
17+ - title : Number the track
2018 completion :
2119 - internal
20+ - title : Draw the race markers
21+ - title : Start the race
22+ completion :
2223 - external
23-
Original file line number Diff line number Diff line change @@ -4,15 +4,14 @@ Create your first racing turtle and get it ready at the starting line.
44
55<h2 class =" c-project-heading--explainer " >Say hello to Ada! 🐢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Start by adding one turtle to the screen.
1010
1111You can name the turtle anything you like. Here, it is called ` ada ` .
1212
1313This turtle gets a colour and shape, then moves to its starting position on the track.
1414
15- --- /task ---
1615
1716<div class =" c-project-code " >
1817--- code ---
Original file line number Diff line number Diff line change @@ -4,15 +4,14 @@ Give your race a second speedy turtle.
44
55<h2 class =" c-project-heading--explainer " >Meet Bob! 🐢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Create a new turtle called ` bob ` .
1010
1111Set Bob’s colour and shape, then move him to the next starting spot.
1212
1313Bob is almost the same as Ada. Just the colour and position change. The important lines that make Bob different are highlighted.
1414
15- --- /task ---
1615
1716<div class =" c-project-code " >
1817--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Now your race needs a third turtle.
44
55<h2 class =" c-project-heading--explainer " >Hello, Eve! 🐢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Create a turtle named ` eve ` .
1010
1111Give Eve a [ colour] ( https://www.tcl-lang.org/man/tcl8.5/TkCmd/colors.htm ) and shape, then move her to the starting line below Bob.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Every race needs a full line-up.
44
55<h2 class =" c-project-heading--explainer " >Say hi to Kai! 🐢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Create a turtle called ` kai ` .
1010
1111Set the colour and shape, then move Kai to the last starting spot.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Now set up the turtle that will draw the race track. This will just have the bas
44
55<h2 class =" c-project-heading--explainer " >Ready, set, draw! ✏️</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Lift the pen so no line is drawn.
1010
1111Move to the top-left corner of the track and make the turtle move fast.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Add number markers along the top of the race track.
44
55<h2 class =" c-project-heading--explainer " >Count the steps! 🔢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Use a loop to write the numbers ` 0 ` to ` 11 ` .
1010
1111After writing each number, move forward to the next spot.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Add the race markers under each number.
44
55<h2 class =" c-project-heading--explainer " >Make the track! 🏁</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Inside the loop, turn and draw a line down for each marker.
1010
1111Then move back up, face forward again, and write the next number.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ Make the turtles move forward a random amount each turn.
44
55<h2 class =" c-project-heading--explainer " >Let them race! 🐢🐢🐢🐢</h2 >
66
7- --- task ---
7+ ### Step 1
88
99Use a loop to take 100 turns.
1010
1111On each turn, move every turtle forward by a random number of steps.
1212
13- --- /task ---
1413
1514<div class =" c-project-code " >
1615--- code ---
You can’t perform that action at this time.
0 commit comments