Skip to content

codehard123/LudoInReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

This project is live at- https://eager-swanson-40c899.netlify.app/

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any list of errors in the console.

Steps to run the project

  1. Install all the dependencies(the /nodemodules) by running

npm install

in the command line.

  1. run npm start to view the project in the browser.

Rules of traditional ludo game:-

  1. In the traditional ludo game the token(goti) moves out from the house when the dice indicates 6. However in this ludo the token is out of the house when the dice indicates one or six.
  2. Whenever we get a six we get an additional chance.
  3. There are stops where if the token rests will not attack opponent's tokens. However such stops have not yet been added
  4. The game can be played among 2-4 player(s)
  5. The player whose secures all 4 tokens by reaching the centre (the win area) of the board wins the game.

Things yet to be implemented:-

  1. Stop signs
  2. Victory indication
  3. Proper token attack

Instructions to play the game:-

  1. First click on the square dice. The dice will indicate a number. By default red moves first.
  2. Click on the red token to move in accordance to the number indicated. If the dice indicates 1 or 6 the token can be taken out of the house.
  3. Unlock the dice by clicking on the tokens of the correct color.
  4. Turn moves in clockwise fashion starting from red.