Code Monkey home page Code Monkey logo

deepeshjaindj / dice-game Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 47 KB

This dice game is actually a two player game. This game starts with player one. Player 1 rolls the dice and gets a number. That number is added to the current score. Now the player may hold the game and switch to the second player. If the player holds and switch to other player manually then the current score is added to final score. If active player do not hold and gets a 1 in dice roll then all the current score will be lost and player will switch automatically. The first player to reach a final score of 100 will win the game. So challenge your friend too in this dice game and be the ultimate winner.

Home Page: https://deepeshjaindj.github.io/dice-game/

HTML 20.85% JavaScript 37.25% CSS 41.90%
css3 html5 javascript game

dice-game's Introduction

Dice Game

This dice game is a two player game. Here one player rolls a dice and keep on rolling until he/she gets a 1 or holds. Then other player gets the opportunity to toll the dice. Game continues until any one player gets a total score of 100 points.

Technologies used: JavaScript, HTML, CSS

Link: Play Game

Responsive for Mobile

--RULES--

  • This game starts with player 1 as active player.

  • Player 1 rolls the dice and gets a number.

  • That number is added to the current score.

  • Now the player may hold the game and switch to the second player.

  • If the player holds and switch to other player then the current score is added to final score.

  • If active player do not hold and get a 1 in the dice roll then all the current score will be lost and player will switch automatically. The same condition applies to player 2 as well.

--WINNING CONDITION--

The first player to reach a final score of 100 will win the game.

So challenge your friend too in this dice game and be the ultimate winner.

Loved the game?

Follow me:

GitHub: @deepshjaindj (https://github.com/deepeshjaindj)
LinkedIn: https://www.linkedin.com/in/deepeshjain-dj
Twitter: @deepeshjaindj2 (https://twitter.com/DeepeshJainDJ2)
Instagram: @deepeshjaindj (Non Professional) - (https://www.instagram.com/deepeshjaindj/)

dice-game's People

Contributors

deepeshjaindj avatar

Stargazers

 avatar

Watchers

 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.