MrBennySolomon / DiceRollGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:SCSS 46.8%Language:JavaScript 32.9%Language:HTML 20.2%