Skip to content

Files

Latest commit

 

History

History

Ludo Game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Ludo Game

This is a simple implementation of the classic Ludo board game using Python. The game can be played by 2 to 4 players. The objective is to race your four tokens from start to finish according to rolls of a single die.

Description

This project includes:

• LudoGame Class: Manages the game logic and player interactions. • Dice Rolling: Simulates the rolling of a six-sided die. • Token Movement: Handles the movement of tokens based on dice rolls and game rules. • Game Display: Shows the current state of the game board.

Required Modules

• Python 3.x This game uses the standard library module random, so no additional installations are necessary.

How to Install

  1. Clone the Repository:
              git clone https://github.com/yourusername/ludo-python-game.git
             cd ludo-python-game

How to Run the Script

  1. Navigate to the Directory:
            cd path/to/ludo-game
  1. Run the Game:
            python ludo_game.py

How to Play

  1. Follow the prompts to roll the dice for each player in turn.
  2. Players will move their tokens according to the dice roll.
  3. The first player to move all their tokens to the finish line wins the game.