This is a turtle race game where you have to make a bet on your turtle and stay to see if it will win or not
This game is made to apply the concepts of turtle and random module
Copy the project to your local enviroment and that's all this code can be run on any python IDE.
- Here you have to choose the colors between: "red", "orange", "yellow", "green", "blue","black"
- You will see who will in the terminal
- First the game will take the input of the colors.
- Using the concept of lists first six turtles are made .
- Then those six turtles are placed to equally maintinig distance in a list we made their Y axis positions where to put them.
- Based on the input color if it will be in list then the game win continue.
- The turtles will move randlomly because of the random module where we are selecting value from 0 to 10 randomly.
- The values will be passed to the forward function which comes under turtle module to moving forward randomly.
- The game will end when one of the turtle reaches the endpoint.
- And the winnig turtle's color will be printed to the terminal.