DICE GAME banner

DICE GAME

1 devlog
18m 7s

🎲 Dice Game

A simple web app built with HTML, CSS, and JavaScript that generates a random number (1–6) when the button is clicked. The result updates instantly with a visual dice. Great for practicing basic DOM manipulation and events.

This project uses AI

🤖 AI Declaration

This project was created by me with the help of AI tools. I used AI for guidance, explanations, and improving the project description, but the code and implementation were written and understood by me.

Demo Repository

Loading README...

sakshisuman25

Shipped this project!

🚢 Shipped my Dice Game project!
Built using HTML, CSS, and JavaScript. Click the button to roll a dice and get a random number (1–6) with instant UI update.
Learned about DOM manipulation, event handling, and Math.random(). 🎲

sakshisuman25

🛠️ Devlog – Dice Game

I started this project to practice basic JavaScript concepts like DOM manipulation and event handling. First, I created the UI using HTML and styled it with CSS to make it simple and clean.

Then, I added functionality using JavaScript. I used Math.random() to generate a number between 1 and 6 and displayed the result when the button is clicked. I also updated the dice visually based on the number.

During the project, I faced small issues with updating elements on the screen, but I fixed them by checking my DOM selection and event listener code.

Overall, this project helped me understand how JavaScript interacts with the UI and how user actions (like clicks) can trigger changes on the page.

Attachment
0