Skip to content

ayanozturk/beegame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bee Game

Rules

You have 13 Bees. 1 of these bees are Queen Bees, 5 are Worker Bees and 7 are Drone Bees.

Queens

  • Each Queen Bee initially has 100 hit points
  • When they are hit 7 hit points are deducted
  • A bee dies when it has 0 or fewer hit points remaining
  • When all the queens are dead - all other bees left (workers, drones) automatically die.

Workers

  • Each worker Bee initially has 75 hit points
  • When they are hit 12 hit points are deducted

Drones

  • Each Drone Bee initially has 50 hit points
  • When they are hit 18 hit points are deducted

Actions

Selecting "hit" should randomly pick a bee and "hit it" deducting the hit value from their current amount of hit points, following the rules above for each type of bee. When a bee has run out of hit points it should no longer be available to pick when the user presses / selects hit, (i.e. that bee is dead). When the last queen dies - all bees should die.

Display

Each time "hit" has been pressed you must display in the browser each individual bee with their details (queen, worker etc), how many hit points it has, whether they are alive or dead and the result of the hit status (i.e. what bee was hit and how many hit points were deducted from it). You should be able to reset the bees at any time to start again.

Releases

No releases published

Packages

No packages published