Vincent Velociter 8b47f9f778 Improve documentation
2022-09-06 12:40:03 +02:00
2022-09-03 12:18:16 +02:00
2022-09-06 12:40:03 +02:00
2022-09-06 12:40:03 +02:00
2022-09-06 12:40:03 +02:00
2022-09-05 17:21:10 +02:00
2022-07-20 11:06:56 +02:00
2022-09-05 17:21:10 +02:00
2022-09-05 17:21:17 +02:00

Dart chess library for native platforms with an immutable API.

Features

  • Read and write FEN
  • Chess rules:
    • move making
    • legal moves generation
    • game end and outcome
    • insufficient material
    • setup validation
  • Chess960 support
  • Chess variants: Atomic
  • Attacks and rays using hyperbola quintessence
  • Immutability: all the classes are immutable.

Example

import 'package:dartchess/dartchess.dart';

final pos = Chess.fromSetup(Setup.parseFen('r1bqkbnr/ppp2Qpp/2np4/4p3/2B1P3/8/PPPP1PPP/RNB1K1NR b KQkq - 0 4'));
assert(pos.isCheckmate == true);

Additional information

This package code was heavily inspired from:

S
Description
Dart chess library for native platforms
Readme GPL-3.0 1.6 MiB
Languages
Dart 100%