MugachaGichamba / pigDice

A website for two players to play a PigDice game

Home Page:https://mugachagichamba.github.io/pigDice/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PIG DICE

A website for two players to play the PigDice game.

Authors

Mugacha Gichamba

Description

Two persons visiting the website will be required to enter their names after which the game will begin. Each player will take turns rolling the dice and whatever they score will be added to their current score unless they roll a "1" or press the hold button. If they roll a 1, the current score will be reset to zero and the next player will play. If they press the hold button their current score will be added to their total score and it will be the other players turn to play. The first player to reach 100 points is the winner.

Technologies used

  1. HTML
  2. CSS
  3. JavaScript -jquery

Dependencies

  1. Bootstrap CDN
  2. JQuery CDN
  3. Math.floor()
  4. Math.random()

Setup & installation instructions

  1. From the project's github repo page, click the clone or download button
  2. Copy the link that appears in the dropdown
  3. From the terminal window in your local machine, change to the local directory where you want to clone your repository.
  4. Type git clone then paste the link you copied from github and press enter.
  5. A new subdirectory will appear in your current folder.
  6. Open the folder with your favourite code editor.

Contact

Phone: 0705684752

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A website for two players to play a PigDice game

https://mugachagichamba.github.io/pigDice/


Languages

Language:JavaScript 43.7%Language:HTML 37.7%Language:CSS 18.6%