Question: Create four Red turtles and four Blue turtles using one or more lists. Start each of the Red turtles at a different random location on

Create four Red turtles and four Blue turtles using one or more lists.
Start each of the Red turtles at a different random location on the left side of the screen within the range of the square formed by (-100,100) and (0,-100) and each of the Blue turtles at a random location on the right side of the screen within the range of the square formed by (0,100) and (100,-100).
Each of the red and blue turtles should move randomly.
Draw a boundary for the game as a circle with a 300 unit radius. You will use an invisible turtle to do this. It does not count as one of the turtles on either team.
If a turtle hits the border the turtle should have its color changed to black and should jump back to the center of the screen (0,0) and continue moving.
All the turtles will move the same speed.
The turtles should continue moving until 1000 time units have elapsed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!