This Python program simulates a turtle race using the Turtle module. Users can place bets on which turtle they think will win the race by entering a color. The turtles move randomly across the screen, and the first turtle to reach the finish line (x-coordinate of 350) determines the winner.
- Run the e.g.
turtle_race.py
script using Python. - The program prompts the user to enter their bet by specifying the color of the turtle they think will win.
- Once the user has placed their bet, the race begins.
- Turtles move randomly across the screen.
- The race continues until one of the turtles crosses the finish line.
- Upon completion of the race, the program displays whether the user's bet was successful or not.
- Ensure Python is installed on your system. If not, download and install it from the official Python website.
- No additional installation is required as the Turtle module comes pre-installed with Python.
Contributions to this project are welcome. If you have suggestions for improvements or bug fixes, please feel free to submit a pull request.