https://github.com/codabytez/pig_game
https://github.com/codabytez/pig_game
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/codabytez/pig_game
- Owner: codabytez
- License: mit
- Created: 2023-06-14T14:41:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T20:29:32.000Z (about 3 years ago)
- Last Synced: 2025-01-15T07:31:24.357Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://pig-game-ssr.vercel.app
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PIG GAME
## Description
This is a simple dice game built with HTML, CSS and Javascript. It is a game of chance where two players roll a dice and the first to reach the final score wins the game.
## Rules
- 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 GLOBAL score. After that, it's the next player's turn
- The first player to reach the play selected points on GLOBAL score wins the game
## How to play
- Enter the final score and click on set score
- Click on the roll dice button to roll the dice
- Click on the hold button to hold your score
- Click on the new game button to start a new game
## Demo
[Live Demo](https://pig-game-ssr.vercel.app/)
## Tech Stack
**Client:** HTML, CSS, Javascript
## License

## Badges










