Skip to content

JacobYZ/tenzies-game

Repository files navigation

Tenzies Game

Tenzies is a fun and simple dice game built with React. The goal of the game is to roll the dice until all dice show the same value. You can freeze the value of each die between rolls by clicking on it.

Demo

You can try out the game at https://tenzies.auroraweb.com.au/

Features

  • Roll a set of 10 dice until all dice show the same value.
  • Click on each die to freeze its value between rolls.
  • Track the number of rolls and the time it takes to get all dice to show the same value.
  • Save your best time in local storage to try and beat it in future games.

Installation

  1. Clone this repository: git clone https://github.com/yourusername/tenzies.git
  2. Navigate to the project directory: cd tenzies
  3. Install the dependencies: npm install
  4. Start the application: npm run dev

Usage

  1. Click on any die to start the game.
  2. Click on the "Roll Dice" button to roll all dice that are not frozen.
  3. Click on each die to freeze its value between rolls.
  4. The game ends when all dice show the same value. The number of rolls and the time it took to finish the game will be displayed.
  5. Click on the "Play Again" button to start a new game.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT