Skip to content

A multiplayer board game supporting 2-4 players, where players can be human or AI.

Notifications You must be signed in to change notification settings

naeemcse/ludo-game-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Ludo Game Project


Acknowledgments

I would like to express my gratitude to Jalal Uddin Sir for his invaluable guidance and support throughout this project.
The Ludo game has been a fantastic learning experience, and I have gained a great deal of knowledge and skills from working on it.
Thank you for this incredible opportunity.


Features

  1. Enter the number of players, their names, and select their colors.
  2. The game supports up to 4 players (minimum 2 players required).
  3. Human and computer players can participate in the game. You can set all players as human, all as AI, or a mix of both (for testing purposes only).
  4. Players take turns in the sequence of initialization.
  5. No player can move without rolling a 6 initially.
  6. Rolling a 6 grants the player an extra roll.
  7. Rolling 6 three times consecutively results in the player losing their turn.
  8. If a player kills another’s pawn, the killed pawn returns to its home, and the killer gains an extra roll.
  9. Completing a pawn's path allows the player another chance to roll the dice for a different pawn.

Testing Tips

  1. Test the game with up to 4 AI players.
  2. Test the game with up to 4 Human players.
  3. To use manual input for dice rolls instead of random values, edit Game.cs:
    • Comment line 191
    • Uncomment line 192

Validations

  • Players: Cannot select fewer than 2 players or more than 4 players.
  • Colors: Only Red, Green, Blue, and Yellow are available, and each player must select a unique color.
  • Movement: Pawns cannot move without first rolling a 6.
  • Path Completion: Completed pawns cannot be selected.
  • Pawn Selection: Choices are limited to 1, 2, 3, or 4.
  • Input Restrictions: Inputs must match the provided options, and cannot be null or an unsupported number.

Project Timeline

  • Start Date: October 17, 2024
  • End Date: November 2, 2024

Output

Displaying the board...
###########################################################################################
#                                   #     |     |     # |                                 #
#            YELLOW                 #-----#-----#-----# V              BLUE               #
#                                   #     #     #     #                                   #
#          -----------              #-----#-----#-----#             -----------           #
#          |    |    |              #     #     #     #             |    |    |           #
#          -----------              #-----#-----#-----#             -----------           #
#          |    |    |              #     #     #     #             |    |    |           #
#          -----------              #-----#-----#-----#             -----------           #
#                                   #     #     #     #                                   #
#                                   #-----#-----#-----#                                   #
# -->                               #     #     #     #                                   #
#####################################-----#-----#-----#####################################
#     |     |     |     |     |     |     #     #     |     |     |     |     |     |     #
#-----#####################################-----#####################################-----#
#     |     |     |     |     |     |     |  X  |     |     |     |     |     |     |     #
#-----#####################################-----#####################################-----#
#     |     |     |     |     |     |     #     #     |     |     |     |     |     |     #
#R2##################################-----#-----#-----#####################################
#                                   #     #     #     #                               <-- #
#             GREEN                 #-----#-----#-----#                RED                #
#                                   #     #     #     #                                   #
#          -----------              #-----#-----#-----#             -----------           #
#          |    |    |              #     #     #     #             |    |    |           #
#     *    -----------              #-----#-----#-----#             -----------           #
#          |    |    |              #     #     #     #             |    |    |           #
#          -----------              #-----#-----#-----#             -----------           #
#                                   #     #     #     #                                   #
#                                 ^ #--G1-G2-G3-G4----#                                   #
#   R1    R3 R4                   | #     |     |     #                                   #
###########################################################################################

About

A multiplayer board game supporting 2-4 players, where players can be human or AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published