Git Product home page Git Product logo

dicerollgame's Introduction

DiceRollGame

the game was implemented with MVC design pattern, using html, scss, javascript. live demo at: https://dice-roll-game-assignment.netlify.app/

Rules

The game has 2 players, playing in rounds. In each turn, a player rolls 2 dice as many times as he wishes. Each result will get added to his round’s score. But if the player rolls a double six all his round’s score gets lost. After that, it's the next player’s turn.A player can choose to ‘Hold’, which means that his round’s score gets added to his global score. After that, it's the next player's turn.The first player to reach 100 points wins.Add an input field where players can set the winning score to change the predefined score of 100.Players can create a new game whenever they want to.

Extra features

  1. Adding how many times the player has won the game.
  2. Adding local storage so our data will be persistent.
  3. if you get 6 and 6 hold your event listeners for 1 second and display a message that you got 6 and 6.
  4. Adding sound effects when player wins and when 6-6 lose turn.
  5. Adding confetti when player wins.
  6. 3D dice.
  7. Glow buttons.

dicerollgame's People

Contributors

mrbennysolomon avatar

Stargazers

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