Skip to content

🎮 [Proposal]: Add Ludo board game to web app #1074

@Alvi24-hub

Description

@Alvi24-hub

Project Name

Ludo Game - Pass and Play with customizable AI opponents

Category

Games

Project Overview

A complete Ludo board game with flexible player configuration. Users can choose how many human players (1-4) and let AI control the rest. Supports Pass and Play for multiplayer on the same device.

Player Configurations:

  • 4 Humans (Pass and Play)
  • 3 Humans + 1 AI
  • 2 Humans + 2 AI
  • 1 Human + 3 AI
  • 4 AI (watch AI vs AI)

Game Features:

  • Classic Ludo board layout (4 colored corners: Red, Green, Yellow, Blue)
  • Dice roll with animation (1-6)
  • Token movement (exact roll needed to enter home)
  • 6 gives an extra turn
  • Safe spots (star squares) — cannot be killed
  • Kill opponent tokens — send them back to start
  • First to get all 4 tokens home wins

AI Difficulty Levels:

  • Easy: Random moves, no strategy
  • Medium: Prioritizes safe moves and killing opponents
  • Hard: Strategic token selection based on distance from home

Pass and Play Mode:

  • Players take turns on the same device
  • Screen shows whose turn it is
  • Dice roll button only enabled for current player
  • Visual indicator for active player

UI Features:

  • Interactive game board with colored tokens
  • Dice rolling animation
  • Current player turn indicator (highlighted border)
  • Game log/message box (kills, extra turns, wins)
  • AI difficulty selector for each AI player
  • Reset/New Game button
  • Player configuration screen (choose human/AI count)

Code Compliance Checklist

  • This project will use ONLY Python's Standard Library (No pip install).
  • The codebase will use procedural logic (No unnecessary classes/functions unless creating a GUI/Web App).
  • The terminal interface will include interactive emojis.

  • I am a registered GSSoC 2026 contributor and want this assigned to me.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions