Rock, paper and scissors is the common game which allows you play with your browser. The purpose is to show you how to create a simple web game with AngularJS and some animations libraries.
- When the app starts you can play instantly
- As user player click in your buttons
- The machine randomly will give you an answer
- By default, each player has eight lives.
- A play means eight lives
- You can earn trophies doing perfect plays
- When some player will get the maximum of trophies the game is finished
- After 4 trophies (by default) you could try to raise the match with one play more
- Download the project from GitHub
-
- node ^8.0.0
- npm ^5.0.0
- Client folder:
npm install
- On your project:
npm install
$ npm start
By default the game has eight lives and four trophies.
You could configure these static params to create your custom game.
1. Go to: app/constant/
2. Edit the file: gameConfig.js
3. Change 'Plays' and 'maxTrophies' constants as you want.
Suggested games:
1. Infinite: Plays = 0 and maxTrophies = 0.
2. Earning trophies: Plays = 3 and maxTrophies = 10.
- Node
- Express
- AngularJS
- Bootstrap
- Animated css
- Font-Awesome
- Sweet Alert
- Hover css