https://github.com/ayeshamunawar-profile/pig-game
A simple web game using HTML CSS and javascript
https://github.com/ayeshamunawar-profile/pig-game
dicegame es5-javascript iffe javascript mvc-architecture pig-game player player-rolls score
Last synced: 9 days ago
JSON representation
A simple web game using HTML CSS and javascript
- Host: GitHub
- URL: https://github.com/ayeshamunawar-profile/pig-game
- Owner: AyeshaMunawar-profile
- Created: 2019-10-18T08:30:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-25T11:44:28.000Z (about 4 years ago)
- Last Synced: 2025-02-17T00:48:21.242Z (3 months ago)
- Topics: dicegame, es5-javascript, iffe, javascript, mvc-architecture, pig-game, player, player-rolls, score
- Language: JavaScript
- Homepage: https://ayeshamunawar-profile.github.io/Pig-Game/
- Size: 1.59 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pig-Game
Game Link : https://ayeshamunawar-profile.github.io/Pig-Game/A simple web game using HTML CSS and javascript
As simple game implemented in javascript called as pig gameRules of game :
- 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 gameExtra Rules entered in version 2:
EXTRA RULES:
-A player looses a game when he rolls two sixes in a row all score global present previous
-Input field to set limit from html
-Second dice player looses current score if only one of them is a one