Code Monkey home page Code Monkey logo

dice-roller-game's Introduction

Dice Roller Game

Dice Roller it's a two player game with dices

Watch the game in action on the Youtube video or click on the image-link below. Play the game.

Dice Roller Game

Looking at the picture below (mainpage of the game) there are some options which the two players should adjust.

  1. Read the game instructions which can be found by pressing the second button (Instructions) on the top right.

      a. Set the player names by clicking on Player 1 and Player 2.
      b. Choose the disired winning score. If you don't, it will be set to 100 by default.
      c. Roll the dices and watch for the rules. Press the Hold button when you have to.
      d. A player looses his entire score when he rolls two 1's or two 6's.
      e. The first player who will reach the winning score is the winner.
      f. Game starts from Player 1 by default when the Roll button is pressed.
    

  1. Set their names on Player1 and Player2 respectively by clicking on them.

  2. Choose the disired score by pressing the first button (Winning Score) on the top right. If the players don't set a score, then the score will be set to 100 by default.

  3. Game starts from Player1 by default when the ROLL DICE button is pressed.

  4. The active player has a gray background. This player rolls the dice and continues to roll until the desired winning score is reached. If he rolls two 1's or two 6's then he loses his turn and at the same time loses the score he has won so far. To avoid this, he should press the HOLD button and hold the current score.

  5. The first player who will reach the winning score is the winner.

Below are 2 images. One is during the game and the other one is when Player1 has already won.

If the screen is smaller or user wants to make it smaller then the mainpage takes some of the following forms.

Watch the game in action on this video : Dice Roller Game.

Author

  • Konstantinos Thanos

dice-roller-game's People

Contributors

kostasthanos avatar

Watchers

 avatar  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.