Skip to content

M00rish/Dice

Repository files navigation

Dice Game

A dynamic two-player dice game built with JavaScript, HTML, and CSS. Players take turns rolling a die and accumulating points to reach the winning score of 100.

🎮 Game Rules

  1. The game has two players, playing in rounds
  2. Each turn, a player rolls a dice as many times as they wish
  3. Each roll gets added to their CURRENT score
  4. If the player rolls a 1, they lose their CURRENT score and it's the next player's turn
  5. A player can choose to 'Hold', which adds their CURRENT score to their TOTAL score
  6. The first player to reach 100 points wins the game

🚀 Features

  • Interactive dice rolling animation
  • Score tracking for both players
  • Current round score display
  • Winner celebration effects
  • Responsive design
  • New game reset functionality

🛠️ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • DOM Manipulation

🎯 How to Play

  1. Open the game in a web browser
  2. Click 'Roll Dice' to start playing
  3. Keep rolling to accumulate points in your current score
  4. Click 'Hold' to add your current points to your total score
  5. Be strategic - decide when to hold or keep rolling
  6. First to reach 100 points wins!

🎲 Controls

  • NEW GAME: Start a new game
  • ROLL DICE: Roll the die during your turn
  • HOLD: Bank your current points

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published