This is a website for a game called Pig Dice that was designed to entertain customers. This is basically how it works. You roll the dice and the number you land on is added to the overall score except:
- if you roll a 1 your total score reverts back to 0 and you start again.
- When you click roll a random number is generated between 1 and 6
- Example click roll.
- Example Output : 2
- An image of a dice is displayed equal to the random number generated.
- The random number generated is added to the overall score.
- Example Output : 5 + 6 = 11
- If the number generated is equal to 1 the score returns to 0
- Example roll 1
- Example Output : total score = 0
- If the total score is equal to the inputed final score the game ends and a button is clicked to start a new game.
- Clone the file
- Copy the URL
- Open the terminal
- Type git clone and then paste the URL and then hit the ENTER button
No bugs known at the moment but if you encounter any inform me.
HTML, CSS, Bootstrap, JavaScript and JQuery were used.
You can contact me on my email [email protected]
*MIT License
Copyright (c) 2018 Anthony Nderitu
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 NONINFRINGEMENT. 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.*