Project Overview This project is a simple Ludo game built using React. It allows 4 players to play the classic board game. The game follows the rules of traditional Ludo, with a few modifications.
You can play the game live at this link.
Getting Started
-
Prerequisites:
- Node.js and npm (or yarn) installed on your system. You can download them from https://nodejs.org/en.
-
Cloning the Repository:
-
Open your terminal and navigate to your desired project directory.
-
Clone this repository using the following command:
git clone [https://github.com/sskhekhaliya/Ludo-react.git](https://github.com/sskhekhaliya/Ludo-react.git)
-
-
Installation:
-
Navigate into the cloned directory:
cd Ludo-react
-
Install the project's dependencies:
npm install (or yarn install)
-
-
Development Server:
-
Start the development server to run the game locally:
npm start (or yarn start)
-
This will typically launch the game in your default web browser at
http://localhost:3000/
.
-
- The token (goti) moves out from the house when the dice indicates 6.
- Whenever a player gets a six, they get an additional chance.
- Stops exist where tokens won't attack opponent's tokens, although these stops haven't been added yet.
- The game can be played among 4 players.
- The player who secures all 4 tokens by reaching the center (the win area) of the board wins the game.
- Click on the square dice to roll it.
- By default, the red player moves first.
- Click on the red token to move it according to the number indicated on the dice.
- If the dice indicates 1 or 6, the token can be taken out of the house.
- Unlock the dice by clicking on the tokens of the correct color.
- Turns move in a clockwise fashion starting from red.
S. S. Khekhaliya
- Website: sskhekhaliya
- Instagram: @sskhekhaliya
- GitHub: @sskhekhaliya
Contributing
We welcome contributions to this project! If you have improvements or bug fixes, feel free to create a pull request. Before making a pull request, please ensure that your code adheres to the project's coding style and formatting guidelines (if any).
License
This project is licensed under the terms of the MIT License.