Code Monkey home page Code Monkey logo

tenzies-game's Introduction

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

tenzies-game's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.