draughts_engine 1.2.1 copy "draughts_engine: ^1.2.1" to clipboard
draughts_engine: ^1.2.1 copied to clipboard

A fast, fully rules-complete international 10x10 draughts engine for Dart & Flutter. Supports men & king movement, flying kings, multi-capture sequences, mandatory capture and longest-line rules, FEN [...]

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());
}
1
likes
120
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A fast, fully rules-complete international 10x10 draughts engine for Dart & Flutter. Supports men & king movement, flying kings, multi-capture sequences, mandatory capture and longest-line rules, FEN loading, move generation, undo, and ASCII board rendering.

Repository (GitHub)
View/report issues

Topics

#draughts #checkers #ai #boardgame #engine

Documentation

API reference

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on draughts_engine