Skip to content

AnnaShnir/Mascot-Race

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published