Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ucarion/fen

A Forsyth-Edwards notation with proper error handling
https://github.com/ucarion/fen

Last synced: about 1 month ago
JSON representation

A Forsyth-Edwards notation with proper error handling

Lists

README

        

# fen

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

```rust
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());
```