Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 2.6 KB

README.md

File metadata and controls

79 lines (52 loc) · 2.6 KB

Ludo Game in React

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.

Live Demo

You can play the game live at this link.

Available Scripts

Getting Started

  1. Prerequisites:

  2. 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)
  3. Installation:

    • Navigate into the cloned directory:

      cd Ludo-react
    • Install the project's dependencies:

      npm install (or yarn install)
  4. 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/.

Rules of the Game

  • 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.

To Play the Game

  1. Click on the square dice to roll it.
  2. By default, the red player moves first.
  3. Click on the red token to move it according to the number indicated on the dice.
  4. If the dice indicates 1 or 6, the token can be taken out of the house.
  5. Unlock the dice by clicking on the tokens of the correct color.
  6. Turns move in a clockwise fashion starting from red.

Author

S. S. Khekhaliya

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.