This is the type of code that will interest you if you are new to JavaScript. Very informaive and takes care of all the basics in JavaScript!
- This game which is like the traditional
ludo game
basically allows the user to roll a dice that outputs a random number between 1 - 6. - Whenever the user rolls a new dice, the number which is rolled is added to the current score; a temporal storage of the total number of dice rolled.
- But note that when a the user plays a 1 or rolls a 1 randomly, the user loses all his scores in the current score then the dice is given to the next player to also roll.
- Otherwise the user can then hold the current score into thier global score.
- The first user to exceed 20 points wins the game.
VisitSite - take a look at it.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See how to install it.
A step by step that will tell you how to get a development environment running
- Clone this repo unto your local machine using the following command:
git clone https://github.com/noraboamaah/Pig-Game.git
- cd into the repo
- Get your hands dirty with some code
Feel at home to make any contributions that you think will make this code better and I will be glad to consider it.
This project is licensed under the MIT License - see the LICENSE.md file for details