chess-huffman

Crates.iochess-huffman
lib.rschess-huffman
version0.12.1
created_at2022-07-12 19:40:01.405059+00
updated_at2026-01-23 18:25:52.27186+00
descriptionCompresses chess games using Huffman coding
homepage
repositoryhttps://github.com/thomas-daniels/rust-chess-huffman
max_upload_size
id624630
size102,314
Thomas Daniels (thomas-daniels)

documentation

README

crates.io docs.rs

chess-huffman

Breaking change: games encoded with version >=0.7 cannot be decoded with version <0.7 and vice versa.

A Rust crate for Huffman compression of chess games. Builds upon Piotr Beling's bsuccinct, Niklas Fiekas's crates shakmaty and pgn-reader, and his blog post on the topic and Java implementation.

Refer to the documentation for up-to-date usage examples:

  • Encoding a game: encode_game, encode_pgn, MoveByMoveEncoder
  • Decoding a game: decode_game, MoveByMoveDecoder
Commit count: 99

cargo fmt