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

https://github.com/martinsewere/pig-game

This is a simple game that works on the browser. Its a simple HTML5 page that interracts with the browser using javascript
https://github.com/martinsewere/pig-game

browser-game css3 html5 javascript

Last synced: 2 months ago
JSON representation

This is a simple game that works on the browser. Its a simple HTML5 page that interracts with the browser using javascript

Awesome Lists containing this project

README

        

# pig-game
This is a simple game that works on the browser. Its a simple HTML5 page that interracts with the browser using javascript

## GAME RULES:
- The game has 2 players, playing in rounds
- In each turn, a player rolls a dice as many times as he wishes. Each result gets 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 GLOBAL score. After that, it's the next player's turn
- The first player to reach 100 points on GLOBAL score wins the game

## =========================================================

![Dice 6](https://github.com/martinsewere/pig-game/blob/master/dice-6.png)
![Dice 3](https://github.com/martinsewere/pig-game/blob/master/dice-3.png)
![Dice 4](https://github.com/martinsewere/pig-game/blob/master/dice-4.png)
![Dice 5](https://github.com/martinsewere/pig-game/blob/master/dice-5.png)

## =========================================================

## ==============SAMPLE GAME- Player 1 Wins the Game!==============

![Dice sample game](https://github.com/martinsewere/pig-game/blob/master/md1.png)
![Dice game winner](https://github.com/martinsewere/pig-game/blob/master/winner.png)