Skip to content

Creating a simple dice game using React.js + vite involves setting up a React project, creating components, and managing state.

Notifications You must be signed in to change notification settings

panwar8279/Dice_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Dice Game

Welcome to the React Dice Game! This is a simple web application built with React.js+vite where you can roll a virtual six-sided dice.

Demo

You can view a live demo of the project https://dicegame.techprodevelopers.com/.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

Make sure you have Node.js and npm installed on your machine.

Installing

  1. Clone the repository to your local machine:

    git clone https://github.com/panwar8279/Dice_game.git
    
  2. Navigate to the project directory:

    cd Dice_game
  3. Install dependencies:

    npm install

Running the App

Start the development server:

npm start

Open your browser and go to http://localhost:3000 to play the dice game.

### How to Play
Click the "Roll Dice" button to roll the dice and get a random value between 1 and 6.
The virtual dice face will display the rolled number.

### Built With
React - JavaScript library + vite for building user interfaces.

### Contributing
If you'd like to contribute, please fork the repository and create a pull request. Feel free to open an issue if you have any suggestions or find any bugs.

About

Creating a simple dice game using React.js + vite involves setting up a React project, creating components, and managing state.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published