This web app was created to allow two players to play a game of dice where one rolls twice then hits 'hold' to change turns, and the first participant to get to 100 wins! If a value of 1 is rolled by the die generator, then the respective player's turn is immediately over and their round total is 0. Date: 17th December 2018 By: Ian Kabugi
The game can accommodate two players where each get two rolls of the dice before hitting 'Hold' button to let the other player take their turn.If either of the players roll 1, then their turn is over and the should let the next player roll his die.
website url: https://iankabugi.github.io/Pig-dice/
- clone this repo :
- If you roll a 1 at any point, you let the other player play regardless of number of times you've rolled(including first roll).
- The first player with total score that is 100 or more wins!
There are no known bugs at the moment
Behaviour | Specification |
---|---|
To participate click player 1 | |
2.Player can roll die and each time it adds the value to the total score and records it | If 1 is rolled, the dice roll is 0. |
3.Alert the winner | The first player whose tally raeches 100 wins. |
Refresh game | refreshes the page |
- HTML was used in making the skeleton of the website.
- CSS was used in styling the webpage.
- Javascript was used in making the game responsive.
- Git and Github were used as my local and online repositories respectively.
- Contact me through my email: [email protected]
- Telephone: +254703456965
MIT License
Copyright (c) [2018] [Ian Kabugi]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.