GA exercise for the Mascot race
- Create the Mascot constructor
- Mascot constructor should hold the variables('name', 'food', an integer for endurance)
- create a (run) method that creates a distance variable
- Distance is between a floor of 1 and ceiling of mascot endurance
- logs to the console "NAME the FOODITEM ran DISTANCE meters!"
- Create three instances of the Mascot. (Name the competitors!)
- create a function called 'race'
- race takes int race_distance and the three mascots as arguments
- race should
- keep track of remaining distance left for all individual mascots
- call run() on each mascot
- subtract distance from mascot's distance left
- log each mascot's remainging distance
- if any mascot crosses the finish line log winner's name
- if any multiple mascot's finish in the same turn, the mascot with the least distance, wins.
- if there is a tie, log tie.