ludo_engine
The rules and computer players behind Simple Ludo, in pure Dart with no dependencies. Immutable and deterministic, with twelve house rules and computer players that turn vicious when you keep kicking them. Runs in an app, on a server or in a test.
final result = Engine.apply(state, AiPlayer.decide(state, rng), rng);
for (final e in result.events) {
if (e is Captured) print('Sent home!');
}
open_peeps_avatar
The avatar system in Simple Shuffle, Trivia and Ludo. Players mix heads, faces, outfits, poses, skin tones and colours; the whole look packs into a single number, and a ready-made editor drops into any Flutter game.
final avatar = const AvatarLook(head: 0, face: 0, facialHair: 0, accessory: 0)
.shuffled(Random())
.encode(); // the whole look, in one int
PeepSticker(avatar: avatar, size: 48, animate: true);