/dice-game

A very simple but fun game you can play with your friend but on the same computer. So we have two players on the left side and the right side. And the goal of the game is to get to 100 points first. Built with JavaScript, HTML and CSS

Primary LanguageJavaScript

dice-game

GAME RULES:

  • The game has 2 players, playing in rounds
  • In each turn, a player rolls a dice as many times as he wishes. Each result gets added to his ROUND score
  • But, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  • The player can choose to "hold", which means that his ROUND score gets added to his GOLOBAL score. After that, it's the next player's turn
  • The first player to reach 100 points on GOLOBAL score wins