A two-player browser dice game. Roll to accumulate a current score, or hold to bank it — but roll a 1 and you lose everything you haven't banked yet. First player to reach the target score wins.
Built as a JavaScript practice project following Jonas Schmedtmann's Udemy course.
- Open
index.htmlin a browser - Set the winning score from the dropdown (20 / 50 / 100 / 200)
- Players take turns:
- Roll Dice — adds the roll to your current (unbanked) score, unless you roll a 1 (turn ends, current score lost)
- Hold — banks your current score; first to hit the target wins
- New Game — resets everything
index.html— Game layout with dice, scores, and controlsscript.js— All game logic (dice roll, player switching, win detection)style.css— Stylingdice-1.pngthroughdice-6.png— Dice face images
Jonas Schmedtmann — JavaScript course