Welcome to the Dice Game! This simple ReactJS and Vite-powered game allows users to roll the dice, select a number between 1 and 6, and earn points based on the outcome. Read on to understand how to play and explore the rules.
To run the Dice Game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/abhijith-07/dice-game.git
-
Navigate to the project directory:
cd dice-game
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:5173 to play the game!
Explore the Dice Game live on https://abhijith-dice-game.netlify.app/ for a hands-on experience.
The project is deployed on Netlify for easy access and convenience. Feel free to visit the following link to play the game:
https://abhijith-dice-game.netlify.app/
Enjoy the game and have fun rolling the dice! 🎲
- Select a number between 1 and 6.
- Tap on the dice to roll it and reveal a random number.
- If the rolled number matches the selected number, you earn points equal to the selected number.
- If the numbers do not match, your total score will be deducted by -2 points.
- Use the "Reset Score" button to start a new game with a fresh score.
This project is licensed under the MIT License - see the LICENSE file for details.