Pig Dice
link to my live site live site This is a project is a game where two playes play against each other andthe one who accummulate score to 100 or more becomes a winner.
Getting Started
To start the project Click Start Button, the program prompt users their names and set each other ready for a new game. Prayer 1, start by rolling dice and continues to accumulate the score if only if has not rolled 1, otherwise his/her round ends and total score pulled to 0.The session is passed to prayer 2 The same thing happens to prayer 2, untill a winner is found Description
The project is design using following technologies:
#Html
#Css
#JS
#Bootstrap
Players input their name, by clicking clicks start button.
Input: Player 1: "prayerX","prayerY"Click START?
Output : true
Player 1 clicks ROLL button.
Input: Click ROLL button
Required:Random generated number from 1 to 6.
Output: true
If Player 1 rolls a 1, no score is added and round for Player 1 ends.
Input : roll 1
Required:No Score added, player round ends
Output :true
If Player 1 rolls a number not 2, score is added and round for Player 1 continues unless want to hold.
Input : roll 1
Required:Score added, player round continues unless hold
Output :true
The project has start button which collects users names and starts a new game Roll buttton generates random numbers from 1-6 Hold button accumulates a prayers score and pass the session to the next prayer
Prerequisites
To have this project run from your end, the following are prerequisites tools you need Installing
Fork this branch from this username:Josiahngugi/project2 once done forking, clone the project to you computer:$git clone URL
Please ensure you have cloned it to the diretory you intended.
Tools
1.Xammp or any other live server 2.atom 3.a computer [atleast 4GB ram, 500GB HDD,core I5 proccessor]
Please ensure you have cloned it to the diretory you intended.
- Josiah Maina Ngugi - Initial work - alfartech
@ MIT ==>Alfar Technologies Limited
- God
- Mr.Ngugi
- moringa TM's