This project is a digital version of a dice game. The objective is to keep rolling ten dice until all of them display the same number. I developed it as part of a series of challenges during the Learn React course on the Scrimba platform. After completing the project on the platform, I added three additional features to the game. First, I replaced the numbers on the dice with dots. Second, I introduced the ability to track the number of rolls. Finally, I implemented a feature that saves the lowest roll count to local storage.
The user is presented with ten dice, and the objective is to roll them until all the dice display the same number.
To achieve this, users can click on their chosen dice to hold them, preventing them from rolling during the next click of the roll button.
I implemented a feature that counts the rolls and, upon completion,
displays the current roll count alongside the lowest roll count from the local storage.
If the current game's roll count is lower than the local storage's count, the local storage is updated.
When the user starts a new game, the updated lowest roll count is displayed at the bottom of the game.
In the original version presented in the course, the dice displayed numbers.
I modified them to show dots using a grid layout.
The website is designed with responsive principles, ensuring an optimal user experience on various screen sizes and devices.
During the development process, I encountered several challenges, such as displaying the correct die face using dots instead of numbers, and saving and displaying the lowest number of rolls and the current number of rolls.
Through this project, I have gained valuable experience and honed various skills: