Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T21:29:17.000Z (almost 5 years ago)
- Last Synced: 2024-11-18T22:08:59.510Z (3 months 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
[![CircleCI](https://circleci.com/gh/clobee/BeeGame-php.svg?style=svg)](https://circleci.com/gh/clobee/BeeGame-php)
[![BCH compliance](https://bettercodehub.com/edge/badge/clobee/BeeGame-php?branch=master)](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`