A simple dice game where players can select a number, roll the dice, and win points based on their guesses.
- Select a number between 1 and 6.
- Roll the dice by clicking the play button.
- Win points if the selected number matches the dice roll.
- Lose points if the selected number does not match the dice roll.
- See the total score and reset the game.
-
Clone the repository:
git clone https://github.com/yourusername/dice-game.git
-
Navigate to the project directory:
cd dice-game -
Install the dependencies:
npm install
-
Start the development server:
npm start
- Select a number by clicking on it.
- Click the "Play" button to roll the dice.
- If the selected number matches the dice number, you gain points equal to the dice number.
- If the selected number does not match the dice number, 2 points will be deducted.
- View your total score.
- Click the "Reset" button to start a new game.
The main component that renders the game board and manages the state of the game.
Displays the game over screen with the total score and a reset button.
Displays the game rules in a modal window.


