draughts_engine

A fast, fully rules-complete international 10×10 draughts engine written in Dart.

Supports:

✔ 10×10 board
✔ men movement
✔ flying kings
✔ mandatory capture
✔ longest capture rule
✔ multi-jump sequences
✔ FEN loading
✔ undo
✔ ASCII board view
✔ simple to embed in Flutter UI


Quick Start

import 'package:draughts_engine/draughts_engine.dart';

void main() {
  final game = Draughts();

  print("Turn: ${game.turn}");
  print(game.ascii());

  final moves = game.moves();
  print("Legal moves: ${moves.length}");

  final m = moves.first;
  print("Playing: ${m.from} -> ${m.to}");
  game.move(from: m.from, to: m.to);

  print(game.ascii());
}

Libraries

draughts_engine