Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

Conversation

@DinkyRajpoot56
Copy link

@DinkyRajpoot56 DinkyRajpoot56 commented Oct 27, 2024

Solved issue no.#392 Adding Game
Please merge my code.It is working properly
Kindly merge my pull request

Name:Dinky Rajpoot
Username:DinkyRajpoot56
Aim:Adding Game
Changes:Added Ludo Game in C
Issue no:#392
Date:27/10/2024

Adding Ludo Game in C
Rule No. 1: The game starts with each player choosing a set of four pieces (usually colored red, blue, green, and yellow) and placing them on the starting square.

Rule No. 2: The objective of the game is to move all four pieces around the board and return them to the starting square before your opponents.

Rule No. 3: On each turn, players roll two dice to determine how many spaces they can move their pieces.

Rule No. 4: The number on each die represents how many spaces a piece can move. For example, if a player rolls a 3 and a 6, they can move one piece 3 spaces and another piece 6 spaces.

Rule No. 5: Pieces can only move forward, never backward.

Rule No. 6: If a piece lands on a square occupied by an opponent's piece, it can "knock off" that piece and send it back to the starting square.

Rule No. 7: A piece can only be moved to a square that is empty or occupied by an opponent's piece.

Rule No 8: If a player rolls a double (e.g., two 6s), they can move one piece the total number of spaces shown on the dice (e.g., 6 spaces for two 3s).

Rule No. 9: if a player 3 pieces reached Home, only one is left. and the piece reached the home column. A person should be shifted to one Dice, if the player wants to play with 2 dice he/she gets the exact number which in the case of one, is not possible

Rule No. 10: If a player has no pieces on the board, they can only roll the dice to try to get a double, which allows them to enter a piece into play.

Rule No. 11: The game ends when one player has all four pieces back on the starting square. That player is the winner.

@DinkyRajpoot56 DinkyRajpoot56 changed the title Added Ludo Game In C Added Ludo Game In C Solved Issue No:#392 Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant