Pig Dice
Allows a player to play Pig the dice game against a computer.
##Technologies JavaScript, JQuery, BootStrap, HTML and CSS
To view the site, you can go to https://mehequanna.github.io/pig-dice. To use the code, you can clone the repository at https://github.com/jryanconklin/pig-dice.
Download the repository. Open index.html in your browser.
- It can take a die roll.
- Input Example: 1
- Output Example: Turn Ends
- A Die is Rolled
- Input Example: [2-6]
- Output Example: Score Tallied, Given Option to Hold or Continue
- On Continue - Roll Again
- Input Example: 1
- Output Example: Turn Ends, Score is Cleared
- On Continue - Roll Again
- Input Example: [2-6]
- Output Example: Score Tallied, Given Option to Hold or Continue
- On Hold Selected
- Input Example: Enter
- Output Example: Score is Pushed to Player Score Total
- Score is 100 or More
- Input Example: Computer or Player score >= 100
- Output Example: Game ends, player or computer wins.
Stephen Emery & J. Ryan Conklin
##License This work can be used under the MIT License. Copyright (c) 2016 J. Ryan Conklin & Stephen Emery