ucarion / fen

A Forsyth-Edwards notation with proper error handling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fen

A Rust Forsyth-Edwards notation parser with proper error handling.

extern crate fen;

let fen = "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1";
let board = fen::BoardState::from_fen(fen).unwrap();
assert_eq!(fen, board.to_fen());

About

A Forsyth-Edwards notation with proper error handling


Languages

Language:Rust 100.0%