This project was bootstrapped with Create React App.
This is a simple React application that implements the classic dice game "Tenzies". The goal of the game is to roll dice until all dice show the same value. Players can hold dice to prevent them from being re-rolled, and the game tracks the number of rolls taken to win.
- Roll 10 dice at once
- Click on a die to hold its value between rolls
- Win the game when all dice are held and show the same value
- Track the number of rolls taken to win
- Responsive and interactive UI
In the project directory, you can run:
- Node.js and npm installed on your machine
- Clone the repository:
git clone https://github.com/crazynets1/tenzies-game-app.git cd tenzies-game-app
- Install dependencies:
npm install
Start the development server:
npm start
The app will be available at http://localhost:3000.
src/App.js
- Main game logic and UIsrc/Die.jsx
- Die componentsrc/index.js
- Entry pointsrc/index.css
- Styles
- Click the "Roll" button to roll all dice.
- Click on individual dice to "hold" their value.
- Continue rolling until all dice show the same value and are held.
- The game will display a winning message when completed.
This project is licensed under the MIT License.