Skip to content

This Dice Game is an interactive web application built with React and styled-components. Players select a number, roll a dice, and earn or lose points based on the result. It’s simple, engaging, and perfect for a quick game session.

Notifications You must be signed in to change notification settings

Hareem-Gohar/Dice-Game

Repository files navigation

Dice Game

This is a simple dice game built using React and styled-components. Players can select a number, roll a dice, and score points based on the outcome. The game also includes features to reset and show the current score.

Features

  • Players can select a number between 1 and 6.
  • Roll a dice and match the number to score points.
  • Increase or decrease the score based on the dice roll.
  • Reset the score to zero.
  • Display the current score.

Usage

  1. Clone the repository:
  2. git clone https://github.com/Hareem-Gohar/Dice-Game.git
  3. Navigate to the project directory:
  4. cd dice-game
  5. Install the dependencies:
  6. npm install
  7. Start the development server:
  8. npm start
  9. Open your browser and go to http://localhost:3000 to see the app in action.

About

This Dice Game is an interactive web application built with React and styled-components. Players select a number, roll a dice, and earn or lose points based on the result. It’s simple, engaging, and perfect for a quick game session.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published