https://github.com/clobee/beegame-php
A little implementation of the BeeGame coding test with PHP
https://github.com/clobee/beegame-php
bee-game php php73 tdd tests
Last synced: 6 months ago
JSON representation
A little implementation of the BeeGame coding test with PHP
- Host: GitHub
- URL: https://github.com/clobee/beegame-php
- Owner: clobee
- Created: 2020-02-25T01:50:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T21:29:17.000Z (over 6 years ago)
- Last Synced: 2025-01-19T19:52:08.810Z (over 1 year ago)
- Topics: bee-game, php, php73, tdd, tests
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Coding Test : Bee game
[](https://circleci.com/gh/clobee/BeeGame-php)
[](https://bettercodehub.com/)
## The challenge
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 1Queen Bee.
- **Worker Bee**
Worker Bees have a lifespan of 75 Hit Points.
When a Worker Bee is hit, 10 Hit Pointsare deducted from his lifespan.
There are 5Worker 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.
______________
## Installation
`composer install`
## Usage
Start the php built-in server `php -S localhost:8888` and visit `http://localhost:8888`.
Refresh the page to start a new round...
## Tests
`composer test`