Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Dice Game

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.

Usage

  1. Visit the live demo of the game: Dice Game

  2. Select a box numbered from 1 to 6 by clicking on it.

  3. Click the "Roll Dice" button to roll the dice.

  4. If your selected box matches the rolled dice, you will score points equal to the selected box. If not, no points will be awarded.

  5. Continue playing and try to achieve the highest score!

...

Features

  • 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

Installation

  1. Clone the repository:
git clone https://github.com/Clean8876/DICEGAME.git
  1. Navigate to the project directory:
cd DICE
  1. Install the dependencies:
npm install

Usage

  1. Start the development server:
npm start
  1. Open your browser and visit http://localhost:5173/ to play the game.

  2. Select a box numbered from 1 to 6 by clicking on it.

  3. Click the "Roll Dice" button to roll the dice.

  4. If your selected box matches the rolled dice, you will score points equal to the selected box. If not, no points will be awarded.

  5. Continue playing and try to achieve the highest score!

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/)
  5. Open a pull request

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgements

Feel free to customize the README file based on your specific project details and requirements.

About

React Dice Game A simple dice game built with React.js where the user can select a box and score points if it matches the rolled dice.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages