{This is a detailed description of your application. Its purpose and usage. Give as much detail as needed to explain what the application does, and any other information you want users or other developers to have. }
- Clone github repo
- Open index.html file in browswer
- follow instructions to play the game
Behavior | Input | Output |
---|---|---|
The program will allow the user to start the pig game | select | display user interface for the game |
The program has a button that generates a random number between 1-6 when the user clicks the button | select roll | display 3 |
The program stores the value of the users roll in a variable | user rolls | var roll = userRoll Value |
The program displays the value of the users roll | user rolled 4 | display 4 |
The program continues to display the value of each consecutive roll by the user | user rolled 4 then user rolls 3 | display 4 display 3 |
The program will total all the displayed values for the users turn | roll 3, 5 ,4 | display "total" = 12 |
The program provides a button to allow user to end the turn and adds responsiveness to the button to alert active player | select "Hold" | display Roll button highlights or gets bigger to alert the active player |
The program will alert the user who reaches a certain number first and considers the game finished | rolls until total = 100 | display congrats you've won |
The program will alert the user who reaches a certain number first and considers the game finished | rolls until total = 100 | display congrats you've won |
{There are no known bugs at this time }
{Please comment on GitHub with questions}
{HTML, Javascript, bootstrap, jquery}
MIT
Copyright (c) 2017 {Jason Ainsworth and James Higgins}