Code Monkey home page Code Monkey logo

pig-game's Introduction

Roll the Dice Game

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!

Description of the Game

  1. 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.
  2. 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.
  3. 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.
  4. Otherwise the user can then hold the current score into thier global score.
  5. The first user to exceed 20 points wins the game.

Deployment

VisitSite - take a look at it.

Getting Started

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.

Installing

A step by step that will tell you how to get a development environment running

  1. Clone this repo unto your local machine using the following command: git clone https://github.com/noraboamaah/Pig-Game.git
  2. cd into the repo
  3. Get your hands dirty with some code

Contributing

Feel at home to make any contributions that you think will make this code better and I will be glad to consider it.

License

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

pig-game's People

Contributors

noramens avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.