Found a turtle racing game on YouTube; been playing with the code:
* * *
It is, of course, impossible to start the two turtles at precisely the same moment.
One just run the two turtles with the same multiplier to notice this; turtle1 wins
everytime. This should not make a difference given the scale of the game, but it
is annoying.
Ran time.time(), from the Python time module - which gives the number of seconds
that have passed since epoch ie January 1, 1970 ... Turtle2 starts in the hundredth
of a second later every time. Below:
No comments:
Post a Comment