This game is almost exactly like Rock-Paper-Scissors, except for one key difference: when you play the game of drones, either you win, or you die.
- Clone this repo in your preferred location and change to the
gameofdrones-client
directory.
[Optional] The master
branch uses a heroku-hosted API. If you want to use a local server instead, run from the project directory:
git fetch && git checkout ar/local-server
- Run
npm install
oryarn install
- Start the dev server using
npm start
- Open http://localhost:8080
npm start
- start the dev servernpm clean
- delete the dist foldernpm run production
- create a production ready build indist
foldernpm run lint
- execute an eslint checknpm test
- run all testsnpm run test:watch
- run all tests in watch mode
Run npm run production
. The production-ready code will be located under dist
folder.
## How to use it
### Game tab The initial screen will prompt for the two players' (or "champions") names. You must complete this small form before proceeding. Once you have selected the names, click 'Start' to start the game.
The "main sequence" will take turns prompting each user, by name, to choose their move (or "weapon"). Click on the icon of the selected move and click 'Accept' to advance to the next turn. Each "round" takes two turns, and immediate computes the result, which will appear on the Scoreboard at the right side. Whoever wins this round gets an additional point added to their state, which is also displayed on the right sidebar.
Once a player reaches 3 points, the game will end and their name will appear on the screen, along with a button to reset the game.