GameService.Sdk.Ludo 1.0.5

dotnet add package GameService.Sdk.Ludo --version 1.0.5
                    
NuGet\Install-Package GameService.Sdk.Ludo -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GameService.Sdk.Ludo" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GameService.Sdk.Ludo" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="GameService.Sdk.Ludo" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GameService.Sdk.Ludo --version 1.0.5
                    
#r "nuget: GameService.Sdk.Ludo, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GameService.Sdk.Ludo@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GameService.Sdk.Ludo&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=GameService.Sdk.Ludo&version=1.0.5
                    
Install as a Cake Tool

GameService Ludo SDK

The Ludo SDK provides a complete client for playing Ludo, supporting both Online Multiplayer and Offline (Local/Bot) modes.

Usage

1. Online Multiplayer

Requires a connected GameClient.

using GameService.Sdk.Ludo;

// Create a new online game
var ludo = await LudoClientFactory.CreateOnlineGameAsync(gameClient);

// Or join an existing one
var ludo = await LudoClientFactory.JoinOnlineGameAsync(gameClient, "ROOM_ID");

2. Offline / Local Multiplayer

Play locally without a server connection.

// Single Player vs Bots
var ludo = LudoClientFactory.CreateSinglePlayer();

// Local Multiplayer (Pass & Play)
var ludo = LudoClientFactory.CreateLocalMultiplayer(playerCount: 4);

3. Game Events

The API is identical for both Online and Offline modes via the ILudoGameProvider interface.

ludo.OnStateUpdated += (state) => {
    Console.WriteLine($"Current Player: {state.CurrentPlayer}");
    Console.WriteLine($"Turn ID: {state.TurnId}");
};

ludo.OnDiceRolled += (player, value) => {
    Console.WriteLine($"Player {player} rolled a {value}");
};

ludo.OnTokenMoved += (player, tokenIndex, from, to) => {
    // Animate token movement
};

ludo.OnGameEnded += (winners) => {
    Console.WriteLine($"Winner: Player {winners[0]}");
};

4. Player Actions

Roll Dice
if (ludo.IsMyTurn)
{
    var result = await ludo.RollDiceAsync();
    if (result.Success)
    {
        Console.WriteLine($"Rolled: {result.Value}");
        
        if (result.CanMove)
        {
            // Auto-move if only one option, or let user choose
            var tokenToMove = result.MovableTokens[0];
            await ludo.MoveTokenAsync(tokenToMove);
        }
    }
}
Move Token
// tokenIndex is 0-3 for the current player's tokens
await ludo.MoveTokenAsync(tokenIndex);

5. Bot Integration

You can implement custom bots by implementing ILudoBot.

var myBot = new MySmartBot();
var game = LudoClientFactory.CreateOffline(4, humanSeatsMask: 0b0001, myBot);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 97 1/15/2026
1.0.4.3 164 12/20/2025
1.0.4.2 161 12/20/2025
1.0.4.1 234 12/19/2025
1.0.4 245 12/19/2025
1.0.3 259 12/19/2025
1.0.2 276 12/18/2025
1.0.1 281 12/18/2025
1.0.0 228 12/15/2025