Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rapleswojtyla/tenzies-game
This is a simple and interactive Tenzies game built with React. The game allows players to roll dice and try to get all the dice showing the same number. The objective is to hold the dice that match, and re-roll the others until all dice are the same.
https://github.com/rapleswojtyla/tenzies-game
classic-game game javascript reactjs tenzies-game webapp
Last synced: 1 day ago
JSON representation
This is a simple and interactive Tenzies game built with React. The game allows players to roll dice and try to get all the dice showing the same number. The objective is to hold the dice that match, and re-roll the others until all dice are the same.
- Host: GitHub
- URL: https://github.com/rapleswojtyla/tenzies-game
- Owner: RaplesWojtyla
- Created: 2025-01-20T11:34:52.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2025-01-20T21:47:23.000Z (7 days ago)
- Last Synced: 2025-01-20T22:43:39.102Z (7 days ago)
- Topics: classic-game, game, javascript, reactjs, tenzies-game, webapp
- Language: JavaScript
- Homepage: https://tenzies-game-omega-kohl.vercel.app/
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tenzies Game (React App)
This is a simple and interactive **Tenzies game** built with **React**. The game allows players to roll dice and try to get all the dice showing the same number. The objective is to hold the dice that match, and re-roll the others until all dice are the same.
## Features:
- **Interactive dice rolling**: Roll the dice and try to match all of them to the same value.
- **Hold functionality**: Click on a dice to hold its value, so it won't roll again.
- **Game reset**: Option to reset the game and start over when the player wins the game.
- **Winning state**: The game ends when all dice are held with the same value.
- **Roll counter**: Tracks the number of times the player has rolled the dice.## Technologies:
- **React**: For building the user interface.
- **JavaScript**: For logic and functionality.
- **CSS**: For styling the game components.This project is a fun and simple implementation of the classic Tenzies dice game, allowing users to test their luck and try to match all dice values.
### Installation (For Development)
npm install### Running the Project (For Development)
npm run dev## React + Vite
This project provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh