Skip to content

BrianNgeno/pig_dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pig_dice

This is an online game that outputs numbers from one to six randomly assuming that one is rolling a dice when they click of the roll button.

Specifications

Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold":

  • If the player rolls a 1, they score nothing and it becomes the next player's turn.
  • If the player rolls any other number, it is added to their turn total and the player's turn continues.
  • If a player chooses to "hold", their turn total is added to their score, and it becomes the next player's turn.
  • The first player to score 100 or more points wins.

Setup/Installation Requirements

  • This game can be viewed on any web browser available on your device.

Known Bugs

There are no unresolved issues in regards to this code that I know of.

Prerequisites

To be able to run this web application, you will need to have a web browser, preferably Google Chrome. Just open the url link deployed on GitHub and run it.

Technologies Used

I worked on this code on Linux OS. I used HTML to write the code, CSS and Bootstrap to style and organize it; JavaScript and the jQuery-3.3.1.min library for functionality purposes, and Markdown language on the ABOUTME section. I created the code using Atom and Git applications.

Support and contact details

If there are any issues on how the code runs, concerns, questions or ideas, kindly reach out to me on my email address; bkn.ngeno@gmail.com.

Authors

License

This project is licensed under the MIT License -

  • MIT License

Copyright (c) 2018 BrianNgeno

  • 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.*/

Copyright (c) 2018 Ngeno

Acknowledgments

  • A big up to Moringa a School for the lessons on how to program.
  • Many thanks to my classmates and Technical mentors at Moringa School for working together with me and assisting where the code didn't work properly.

Releases

No releases published

Packages

No packages published