Skip to content
← All projects

The Dicee Game

May 2022

The Dicee Game

About

A tiny two-player dice duel that runs entirely in the browser. Every time the page loads, each player is dealt a random die from 1 to 6, and the headline immediately calls the result: "Player 1 Wins!", "Player 2 Wins!", or "Draw!" — with the winning dice highlighted.

How to play

There are no buttons to learn — just refresh. Hitting the Refresh Me button (or reloading the page) rolls both dice again for a new round. It was originally created as a practice project for a web development bootcamp, and it's a fun little demonstration of DOM manipulation with plain JavaScript: random numbers pick the dice images, and a simple comparison decides the winner.

Tech Stack

  • JavaScript
  • HTML
  • CSS