Hi all : This semester my class has been exploring lists with functions and utilising the random feature to create more dynamic presentations. Here is a small demo of it where a horse race is simulated. Here are things that happen.
- You are asked how many horses you wish to race.
- You are asked how long the race should be (distance in meters)
- Based on these 2 values X numbers of random horse objects run Y meters at Z speeds.
I would love to be able to add the feature where the user can choose the animal too but I am still figuring out how to create an object without needing to have it already exist within the cospace to be made a copy of. Please feel free to visit and remix as needed.
Cheers,