Crates.io | cgn-cli |
lib.rs | cgn-cli |
version | 0.1.3 |
source | src |
created_at | 2024-02-13 14:16:47.008016 |
updated_at | 2024-09-28 11:55:28.834706 |
description | A command-line tool for optimally compressing chess games in PGN format. |
homepage | |
repository | https://github.com/JadenStrudwick/cgn-cli/ |
max_upload_size | |
id | 1138528 |
size | 56,512 |
CGN-CLI is a simple command line interface for the CGN (Compressed Game Notation) library I created. It allows you to compress and decompress PGN files using the CGN library. It is designed to be fast, efficient, and flexible. It supports WASM compilation via wasm-pack, and contains 4 different compression algorithms to choose from.
opening-huffman
- A Huffman encoding algorithm that uses the huffman-encoding crate to compress the PGN data, but with an additional optimization for compressing common opening moves.dynamic-huffman
- A Huffman encoding algorithm that uses the huffman-encoding crate to compress the PGN data, but with a huffman tree that is updated dynamically as the data is compressed.huffman
- A Huffman encoding algorithm that uses a huffman-encoding crate to compress the PGN data.bincode
- A simple binary encoding algorithm that uses the bincode crate to serialize the PGN data into a binary format.Ensure you have Rust installed on your system. Then run the following command:
cargo install cgn-cli
cgn-cli --help