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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started