This is a simple dice rolling game built using React. The game allows you to roll a set of dice and hold certain dice to generate specific combinations.
- Roll the dice: Click the "Roll" button to roll all the dice. The dice will display random values between 1 and 6.
- Hold dice: Click on a specific die to hold it. Held dice will not be rolled in subsequent rolls.
- Simple UI: The UI design focuses on providing a clean and straightforward layout, allowing players to easily interact with the game. .
-
Clone the repository:
git clone https://github.com/gauyash/tenzie-game.git
-
Navigate to the project directory:
cd dice-rolling-game
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The game should now be running on http://localhost:3000.
- Click on the dice to hold or release them.
- Click the "Roll" button to roll the dice and generate new values.
- If all held dice have the same value, then you win the game.
- React
- nanoid (for generating unique IDs)
- Bootstrap
- CSS
- HTML
- JavaScript
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.