Crate chess_huffman

source

Structs§

  • Error when decoding an encoded bit vector into a game, because the bit vector is invalid.
  • Error when encoding a chess game.
  • An encoder that lets you add moves one-by-one, rather than a whole game at once.

Enums§

Traits§

Functions§

  • Decodes a bit vector into a game, returning both a vector of all moves and all positions. The N’th position in the position vector is the position after the N’th move in the move vector.
  • Decodes a bit vector into a game, calling an implementation of the MoveByMoveDecoder trait for each move. This allows for more fine-grained processing than decode_game.
  • Encodes a chess game into a compressed bit vector.
  • Encodes a chess game, represented as a PGN (Portable Game Notation), into a compressed bit vector.
  • Encodes a chess game, stored in a PGN file, into a compressed bit vector.

Type Aliases§