Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

cn007b/beeGame

Repository files navigation

The Bee Game

Build Status Scrutinizer Code Quality Coverage Status Codacy Badge SensioLabsInsight

To play this game just run in shell: docker-compose run php php /var/beeGame/index.php.
Or: vagrant up then vagrant ssh and php /var/beeGame/index.php.

During game you'll see game progress like:

Bee\Drone: 50 50 50 50 50 50 50 50
Bee\Worker: 75 75 75 75 75
Bee\Queen: 100
Do you wish hit bee (y) or exit game (n)?

or something like this:

Bee\Drone: 2
Bee\Worker: 15
Game over. Start new game (y/n)?

Specification:

Bees:

There are three types of bees in this game:

  • Queen Bee:

    • The Queen Bee has a lifespan of 100 Hit Points.
    • When the Queen Bee is hit, 8 Hit Points are deducted from her lifespan.
    • If/When the Queen Bee has run out of Hit Points, All remaining alive Bees automatically run out of hit points.
    • There is only 1 Queen Bee.
  • Worker Bee:

    • Worker Bees have a lifespan of 75 Hit Points.
    • When a Worker Bee is hit, 10 Hit Points are deducted from his lifespan.
    • There are 5 Worker Bees.
  • Drone Bee:

    • Drone Bees have a lifespan of 50 Hit Points.
    • When a Drone Bee is hit, 12 Hit Points are deducted from his lifespan.
    • There are 8 Drone Bees.

Gameplay:

To play, there must be a button that enables a user to "hit" a random bee. The selection of a bee must be random. When the bees are all dead, the game must be able to reset itself with full life bees for another round.

About

🐝 This is simple frameworkless game written for exhibition purposes. You can find OOD and lot of different Design Patterns here.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published