Which turtle can reach the finish line first?
With multiple turtles and a random forward movement, a race can be simulated.
Write a program that runs a race of up to 8 turtles moving up the screen 240 pixels from a starting position. Each turtle can move between 0-10 pixels in each turn. All the turtles will finish the race, but once a turtle has reached the finish line it will stop moving. The results of the race should be output.
Use this boilerplate code as a starting point:
Remember to add a comment before a subprogram, condition or iteration to explain its purpose.
Results:
1 : salmon
2 : purple
3 : blue
4 : green
5 : red
6 : orange
Use these resources as a reference to help you meet the success criteria.
Check that your program outputs the expected result and has met the success criteria.
Check that you have: