Skip to content

Repository files navigation

🎲 Dice Game

A simple two-player JavaScript dice game.

  • If a player rolls a 1, they instantly lose that round.
  • Otherwise, both players’ rolls are added up; the higher total wins.
  • Ties are possible when the totals match.

🖼️ Preview

Dice Game Preview


✨ Features

  • Two-player dice roll
  • Instant loss on rolling 1
  • Highest total wins (otherwise)
  • Lightweight: HTML, CSS, JavaScript only

🕹️ How to Play

  1. Click Roll Dice to generate two random dice results.
  2. If any roll is 1, that player loses immediately.
  3. If no one rolled a 1, compare totals — higher total wins.
  4. Click again to start a new round.

About

A simple two-player JavaScript dice game: roll the dice, avoid rolling a 1, and aim for the highest total to win.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

Contributors

Languages