Question: Pyhton assignment: Create a Turtle graphics window and draw a city grid of streets that run vertically and horizontally. Place at least 4 turtles randomly

Pyhton assignment:

Create a Turtle graphics window and draw a city grid of streets that run vertically and horizontally. Place at least 4 turtles randomly on the grid and have them conduct a random walk around the city. Color your turtles so that they are easily differentiated among one another and have them leave a trail of their travels behind them of the same color.

Decide on an objective for your "game" so that it ends at some point. Some possible objectives are:

-each time turtles meet, the meeting turtles get a point; game ends when the first turtle accrues x points

-place a goal location on the grid, when a turtle finds the goal location that turtle wins and the game is over

-place a wormhole on the grid, when a turtle finds the wormhole, suck them off the grid into another dimension; when all turtles have disappeared the game is over

-place multiple wormholes on the grid, when a turtle finds a wormhole, transfer them to a random place on the grid; game could end after each turtle finds wormholes at least x times

Items you may consider having the user select:

-size of the city block

-number of turtles

-speed of the turtles

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!