Skip to content

abhijith-07/dice-game

Repository files navigation

Dice Game

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.

Getting Started

To run the Dice Game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/abhijith-07/dice-game.git
  2. Navigate to the project directory:

    cd dice-game
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run dev
  5. Open your browser and visit http://localhost:5173 to play the game!

Live Demo

Explore the Dice Game live on https://abhijith-dice-game.netlify.app/ for a hands-on experience.

Deployed Version

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! 🎲

How to Play

  1. Select a number between 1 and 6.
  2. Tap on the dice to roll it and reveal a random number.
  3. If the rolled number matches the selected number, you earn points equal to the selected number.
  4. If the numbers do not match, your total score will be deducted by -2 points.
  5. Use the "Reset Score" button to start a new game with a fresh score.

License

This project is licensed under the MIT License - see the LICENSE file for details.