I made a turtle race in python with turtle random and the outcome would never be the same. There is a start line, a finish line, and there are four turtle that make a line behind them. When one of them crosses the finish line, everyone stops racing and it says congratulations, turtle __. Whatever turtle won would be there and there would be a cool blue circle around it.
I learned about the random command and that opens up a ton more of possibilities. I also learned about the write command and it took me around 20 minutes to figure it out. Finally, I learned about the xcor command. When the turtle reaches an x coordinate, then you could do cool things with it.
A problem that I had was when the turtle crossed the finish line most of the time it didn’t stop and I learned that the xcor command only worked when it reached that one number and if it went over then it wouldn’t stop. I figured out how to solve that by doing a >= instead of ==. I was proud of that because I was the only person in my class to find that out and I told everyone else so that there projects would also be better.
If I had more time to work on it, I would add a” 3, 2, 1, Go!” at the start. I also would’ve liked to try a circle track to see if I could make them go around an actual track and I have a few ideas of how to do that.
Here is my project: https://repl.it/join/tymbcwcy-rileywold