Clash Of Dices

Clash Of Dices

Clash Of Dices

3 weeks
3 weeks
3 weeks
Front-End Web Development
Front-End Web Development
Front-End Web Development
Avenzor

Simple Demonstration:

In Clash of Dices, two players take turns rolling a single six-sided dice. On each turn, a player can roll the dice multiple times, accumulating the sum of the rolls to their "current" score. However, if a player rolls a 1, their "current" score resets to 0, and their turn ends. Players can choose to "hold" their "current" score, which adds it to their "total" score, and passes the turn to the other player. The first player to reach or exceed the target score of 100 points wins the game. Players must strategically decide when to hold their "current" score and when to keep rolling the dice to accumulate more points without risking a roll of 1 and losing their turn's progress.

index.html

This is the HTML file that structures the web page for the 'Clash of Dices.'

style.css

This file contains the CSS styles for the "Clash of Dices." Here's a breakdown of the different sections:


script.js

This file contains the JavaScript code that powers the "Clash of Dices." Here's a breakdown of the different sections:


The programming is well organized, follows best practices for keeping HTML, CSS and JavaScript separate, for clarity. In the JavaScript file strict mode is. DOM manipulation is used to keep the game running and providing interactive expxerience for players.

Github: https://github.com/fahim-ysr/Clash-of-Dices

Other Projects

Let's Connect!

Let's Connect!

Let's Connect!

© Copyright 2025. All rights Reserved.

Made

in

© Copyright 2025. All rights Reserved.

Made

in

© Copyright 2025. All rights Reserved.

Made

in

Create a free website with Framer, the website builder loved by startups, designers and agencies.