Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 487 Bytes

README.md

File metadata and controls

10 lines (10 loc) · 487 Bytes

Mascot Race

  1. Name 3 mascots with a name, food, and endurance integer
    • Badger the Bagel, endurance of 3
    • Vixen the V8, endurance of 3
    • Unicorn the Udon, endurance of 4, can trip
  2. Create the actual race using the variables defined earlier
    • Set the race distance
    • Create a run function which randomly assigns a distance from 1 to the runner's endurance
    • Use while loop to run until distance is hit
    • Once distance is hit, declare the runner with 0 meters left the winner