An open API service indexing awesome lists of open source software.

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.

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.
![Screenshot](screenshot.png)

## 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)