san-rs

Crates.iosan-rs
lib.rssan-rs
version0.3.1
sourcesrc
created_at2019-07-08 18:06:43.364065
updated_at2021-02-06 12:07:08.711084
descriptionA library for parsing standard algebraic notation (SAN)
homepage
repositoryhttps://github.com/ergor/libsan-rs
max_upload_size
id147603
size56,455
Erol Gorancic (ergor)

documentation

README

libsan-rs

Rust implementation for parsing standard algebraic notation in chess inspired by standard-algebraic-notation.

Usage

Add this to your Cargo.toml:

[dependencies]
san-rs = "0"

Short example usage:

use san_rs::*;

fn main() {
    // parse input string:
    let move_data = Move::parse("Re4").unwrap(); // -> data struct

    // convert back to string:
    let san_string = move_data.compile(); // -> "Re4"
}
Commit count: 19

cargo fmt