niklasf / shakmaty

A Rust library for chess and chess variant rules and operations
https://docs.rs/shakmaty
GNU General Public License v3.0
213 stars 43 forks source link

Potential addition for lichess style pgn and fen compression #83

Open ekhar opened 3 weeks ago

ekhar commented 3 weeks ago

Hey, I have integrated for my own app some of the compression techniques written in lichess blogs using shakmaty. I am curious if I could integrate this in shakmaty itself for a pr or if that is outside the scope of this package.

Blog posts that I implemented - https://lichess.org/@/revoof/blog/adapting-nnue-pytorchs-binary-position-format-for-lichess/cpeeAMeY https://lichess.org/@/lichess/blog/developer-update-275-improved-game-compression/Wqa7GiAA

niklasf commented 2 weeks ago

Hi, the binary FEN format would be a welcome addition. I think it strikes a great balance between simplicity, size and performance, and Stockfish developers are already using it as a data exchange format.

Lichess's game compression is probably a bit too special, with many possible alternatives.