This is a simple dice game built with React.js where the user can select a box numbered from 1 to 6. If the user's selected box matches the number on the rolled dice, the user scores points equal to their selected box. If the selected box does not match the rolled dice, no points are awarded.
-
Visit the live demo of the game: Dice Game
-
Select a box numbered from 1 to 6 by clicking on it.
-
Click the "Roll Dice" button to roll the dice.
-
If your selected box matches the rolled dice, you will score points equal to the selected box. If not, no points will be awarded.
-
Continue playing and try to achieve the highest score!
...
- User can select a box numbered from 1 to 6
- Dice is rolled randomly
- User scores points if their selected box matches the rolled dice
- No points are awarded if the selected box does not match the rolled dice
- Responsive design for optimal viewing on various devices
- Clone the repository:
git clone https://github.com/Clean8876/DICEGAME.git- Navigate to the project directory:
cd DICE- Install the dependencies:
npm install- Start the development server:
npm start-
Open your browser and visit
http://localhost:5173/to play the game. -
Select a box numbered from 1 to 6 by clicking on it.
-
Click the "Roll Dice" button to roll the dice.
-
If your selected box matches the rolled dice, you will score points equal to the selected box. If not, no points will be awarded.
-
Continue playing and try to achieve the highest score!
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/) - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.
Feel free to customize the README file based on your specific project details and requirements.