Skip to content

pfjoana/vite-react-tenzies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tenzies Game

This project is a class project built with React on Vite to implement a digital version of the Tenzies game.

Overview

The goal of the Tenzies game is to roll the dice until all the numbers on the dice are the same. Each die can be locked, and only the unlocked dice are rolled when the roll button is clicked. The game continues until all the dice are locked and display the same number, indicating that the game is finished. Additionally, a confetti effect is displayed on the screen to celebrate the completion of the game.

Features

  • Roll the dice: Click the roll button to roll all unlocked dice.
  • Lock dice: Click on individual dice to lock them and prevent them from rolling.
  • Game completion: When all dice are locked and display the same number, the game is finished.
  • Confetti effect: Upon completion of the game, a confetti effect is displayed on the screen.

Usage

  1. Clone the repository:
git clone https://github.com/pfjoana/vite-react-tenzies.git
  1. Navigate to the project directory:
cd vite-react-tenzies
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open the displayed localhost to play the Tenzies game.

imagem

Appearance of dice locked:

imagem

Confetti effect at the end:

imagem

...and the final step... Have fun! ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published