Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Ludo Game

A modern implementation of the classic Ludo board game built with Android and Jetpack Compose. This game features beautiful animations, an AI opponent, and an intuitive user interface.

Features

  • Classic Ludo Gameplay: Play the traditional 4-player Ludo game with rules you know and love
  • AI Opponents: Play against computer-controlled opponents when you don't have friends available
  • Beautiful UI: Modern interface built with Jetpack Compose featuring smooth animations
  • Visual Feedback: Animated dice rolling, token movements, and interactive elements
  • Colorful Design: Distinct colors for each player (Red, Green, Blue, Orange)
  • Responsive Design: Clean layout that works well on different screen sizes

Game Rules

  • Each player has 4 tokens to move around the board
  • Roll a 6 to move a token out of the starting area
  • Move tokens clockwise around the board based on dice roll
  • Landing on an opponent's token sends it back to their starting area
  • Reach the center first with all tokens to win

Technical Details

  • Platform: Android (API 21+)
  • Language: Kotlin
  • Framework: Jetpack Compose for UI
  • Architecture: Compose-based state management
  • AI Logic: Basic AI opponent with decision-making

Components

  • Game Board: Central playing area with paths for all players
  • Player Homes: Corner areas where tokens start
  • Dice Controls: Interactive dice with rolling animation
  • Token Management: Visual representation of all game tokens

How to Play

  1. Launch the app on your Android device
  2. The game starts with Player 1 (Red)
  3. Tap the dice to roll and get a number
  4. Select a token to move based on the dice value
  5. Continue until one player gets all tokens to the center

AI Opponents

The game includes AI opponents that automatically take their turns:

  • AI players will roll dice and make moves automatically
  • Each AI decision is made after a short delay for better gameplay experience
  • The AI selects moveable tokens randomly when multiple options are available

Technologies Used

  • Android SDK
  • Kotlin
  • Jetpack Compose
  • Compose Animations
  • Coroutines
  • Material Design 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages