dartchess
dartchess copied to clipboard
Dart chess library for native platforms
Hello! I found a problem when loading pgn with '{\nsome comments' pattern. May be even inside '(' variation I added example modified file wcc_2023_1.pgn [wcc_2023_1.txt](https://github.com/lichess-org/dartchess/files/14897683/wcc_2023_1.txt) I modified it here... ...
Hi, Library Version: dartchess: ^0.6.1 I am using the following test-code to query the allowed moves of the king: ``` String fen = "rnbqk2r/ppppbppp/4p1N1/4P3/8/B7/PPPPBPPP/RN1QK2R w KQkq - 0 1"; final...
Hi! Excellent package! Do you plan to add web?
~~Currently 2 tests are not passing:~~ Currently 1 test is not passing: https://github.com/lichess-org/dartchess/blob/main/test/pgn_test.dart#L317
Closes #14 Fix related to that perft test: ``` id align-ep epd 8/8/8/1k6/3Pp3/8/8/4KQ2 b - d3 perft 1 6 perft 2 121 perft 3 711 ```
Currently the Setup class supports the fen with Setup.parseFen constructor, almost lichess endpoints for puzzles returns a Pgn string, it would be nice if there is some Setup.parsePgn
Fixes #25
Fixes #23
_getCastlingSide() creates all sorts of "legal" castling moves where the king is moved onto another piece of its own color. e.g. depending on the setup, I saw things like Ka2,...
_copyWith() carries the epSquare forward to the next move when a DropMove is played, which makes this sequence possible: 1. d4 e5 2. Nf3 Qg5 3. Nxg5 Be7 4. dxe5...