This is a simple implementation of the Tenzies game using React. In Tenzies, the goal is to roll dice until all of them show the same number. You can hold dice to keep their values while rolling the others.
I made this project while following the Learn React course on scrimba.com
- Roll dice to get matching values
- Hold dice to keep their values
- Track the number of rolls
- Timer to track the time taken to win
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/RushilJalal/tenzies-game.git
-
Navigate to the project directory:
cd tenzies-game
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The app should now be running on
http://localhost:5173
.
- Click the "Roll" button to roll all dice that are not held.
- Click a die to toggle its "held" state, keeping its value between rolls.
- Continue rolling and holding dice until all dice show the same number.
Contributions are welcome! Please fork the repository and use a feature branch. Pull requests are gladly accepted.
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a pull request
This project is part of Learn React course on scrimba.com.