https://github.com/kaushikshivam/pig-game
It is a classic dice pig game. The objective of the game is to score 100 points before the opponent does. The game is played with a single six-sided die.
https://github.com/kaushikshivam/pig-game
css css3 es6 html html5 javascript javascript-applications javascript-game jonas-schmedtmann pig-game
Last synced: 8 months ago
JSON representation
It is a classic dice pig game. The objective of the game is to score 100 points before the opponent does. The game is played with a single six-sided die.
- Host: GitHub
- URL: https://github.com/kaushikshivam/pig-game
- Owner: KaushikShivam
- Created: 2019-10-13T15:23:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T10:54:07.000Z (over 5 years ago)
- Last Synced: 2024-12-27T21:13:45.623Z (10 months ago)
- Topics: css, css3, es6, html, html5, javascript, javascript-applications, javascript-game, jonas-schmedtmann, pig-game
- Language: JavaScript
- Homepage: https://piggameofficial.netlify.com/
- Size: 2.13 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pig Game
[Pig Game](https://piggameofficial.netlify.com/) is a classic dice pig game. The objective of the game is to score 100 points before the opponent does. The game is played with a single six-sided die.
## Table of content
- [Project Specifications](#Specifications)
- [Installation](#installation)
- [Contact](#contact)## Specifications
- The game has 2 players, playing in rounds
- In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score
- BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
- The player can choose to 'Hold', which means that his ROUND score gets added to his GLBAL score. After that, it's the next player's turn
- The first player to reach 100 points on GLOBAL score wins the game## Installation
1. Clone the project to your local directory
```
git clone https://github.com/KaushikShivam/pig-game
```2. The project uses NPM for managing dependencies. Run npm install to install all the required dependencies
```
npm install
```3. Run the task runner to run the app
```
npm run start
```## Contact
You can contact me at:
- [Portfolio](https://www.shivamkaushik.com)
- [Email](mailto:shivamkaushikofficial@gmail.com)
- [Linkedin](https://www.linkedin.com/in/kshivamdev/)
- [Twitter](https://twitter.com/kShivamDev)
- [Medium](https://medium.com/@shivamkaushikofficial)
- [Angellist](https://angel.co/kshivamdev)