Question: Create eight turtles with a random color (selected from a list of four possible colors that you specify, but should not be black or red).

Create eight turtles with a random color (selected from a list of four possible colors that you specify, but should not be black or red).

Start each of these turtles at a random location on the screen within the range of the square formed by (-100, 100) and (100, -100). Each of these turtles will 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.

Use your invisible turtle to write your name in the upper right-hand corner of the screen (but outside of the circle drawn above).

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.

If a turtle moves within 20 units of another turtle turn both of these turtles red

All the turtles will move the same speed

The turtles should continue moving until 1000 time units have elapsed

I need to use Python and create the instructions written above.

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 Databases Questions!