MohammedMahmud / Yahtzee

Yahtzee game running in React App with a dynamic web page, online gaming, and many asynchronous features. Made this during my undergrad in 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Yahtzee

This is a simple implementation of the classic dice game, Yahtzee, built using React. Players roll dice to create specific combinations and score points.

Table of Contents

  • Features
  • Installation
  • Usage
  • Features
  • Roll dice up to three times per turn
  • Hold specific dice to keep their values between rolls
  • Track scores for various combinations (e.g., ones, twos, threes, etc.)
  • Automatically update scores based on dice combinations
  • Asynchronous updating of scores as the game progresses

Installation

Before you can run the application, you need to have Node.js and npm (Node Package Manager) installed on your computer. You can download Node.js from the official website: https://nodejs.org/

To install the project, follow these steps:

Clone the repository:

git clone https://github.com/MohammedMahmud/Yahtzee.git

Move to the project directory:

cd Yahtzee

Install the required dependencies:

npm install

Usage To start the development server and run the application, execute the following command:

npm start

This will open the application in your default web browser at http://localhost:3000/

To play the game, roll the dice by clicking the "Roll" button. You can hold specific dice by clicking on them, which will prevent them from being rolled again. You have up to three rolls per turn to create specific combinations and score points. The scores will be automatically updated as the game progresses.

If you want to restart the game, click the "Restart Game" button at the top of the page. This will reset the scores and dice rolls, allowing you to start a new game.

Screenshots of the Game

image

About

Yahtzee game running in React App with a dynamic web page, online gaming, and many asynchronous features. Made this during my undergrad in 2018


Languages

Language:JavaScript 81.1%Language:HTML 14.9%Language:CSS 4.1%