This title really clickbaited me :D Good job! I wonder, how did you implement horse speed?
Thanks!
The horse speed was done by recalculating the speed every 3 to 6 (randomized) seconds. Each horse gets a % of chance of either going between its two lowest speeds, or two highest speeds. For example, the horses with the longest odds (the 2 slowest horses of the pool of 30) have an 80% chance of their speed varying between their two LOWEST speeds, and a 20% chance of a randomized speed between their two HIGHEST speeds. Conversely, the fastest horse (the 3 with 2/1 odds) have an 80% chance of their speed varying between their two HIGHEST speeds, and a 20% chance of the LOWEST speeds. Lowest and highest possible speeds for both the slow and fast speed are lower for the slower horses, but there is crossover in speed enough to mean that there is a chance, though small, that the slowest horse can run faster than the fastest horse. All the horses in between then go gradually from one extreme to the other. With the complete mid range horses having a 50/50 chance of going faster or slower.
Hope this is clear enough! Thanks for playing!