A fun and interactive Python turtle graphics-based racing game, where users can bet on which turtle will win the race. Features colorful turtles and an engaging gameplay experience.
To run the Turtle Racing Game, follow these steps:
You'll need Python 3.x installed on your computer. You can download the latest version of Python here.
- Clone this repository or download the
turtle_racing.py
file. - Open a terminal/command prompt in the same directory as the
turtle_racing.py
file. - Run the following command:
python turtle_racing.py
- The game window will open. Enter your bet for the winning turtle based on its color and enjoy the race!
The game window will display 6 turtles, each with a unique color. Enter your bet for the winning turtle by typing the turtle's color in the prompt. Once you submit your bet, the turtles will start racing. The first turtle to reach the right side of the screen wins.
After the race is finished, you'll see a message in the terminal that tells you whether you've won or lost based on your bet.
We welcome contributions to improve the Turtle Racing Game. To contribute, please follow these steps:
- Fork this repository.
- Create a branch with a descriptive name, e.g.,
fix-turtle-speed
. - Make your changes and commit them with a meaningful commit message.
- Open a pull request and describe the changes you've made.
This project is licensed under the MIT License. See the LICENSE file for more information.