Skip to content

standard algebraic notation (san) parsing library in rust

License

Notifications You must be signed in to change notification settings

ergor/libsan-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

standard algebraic notation (san) parsing library in rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages