Tenzies is a simple dice game where the objective is to roll all dice to the same number as quickly as possible.
- Built using React, a popular JavaScript library for building user interfaces.
- Utilizes the
react-confetti
library to add a celebratory confetti effect when the game is won. - Uses the
fontawesome
library to display the dice faces. - Stores the user's best score (smallest number of rolls) in the browser's local storage.
To run the Tenzies game app locally, follow these steps:
- Clone the repository:
git clone https://github.com/Juin28/Tenzies_Game_App.git
- Navigate to the project directory:
cd Tenzies_Game_App
- Install the dependencies:
npm install
- Start the development server:
npm start
This Tenzies Game App will then be available at your local host
- The game starts with 10 dice, each displaying a random number from 1 to 6.
- Click on a die to "hold" it, keeping its current value.
- Roll the remaining dice until all 10 dice display the same number.
- When all dice display the same number, the game is won, and a confetti effect is displayed.
- The number of rolls it took to win the game is stored in the browser's local storage as the "best score".
- The best score is displayed on the screen, and the user can try to beat their previous best score.
- React
- react-confetti
- fontawesome
If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.