1 unstable release

Uses old Rust 2015

0.1.0 Aug 6, 2015

#6 in #proper

Download history 9/week @ 2024-07-20 27/week @ 2024-07-27 10/week @ 2024-08-03 16/week @ 2024-08-10 8/week @ 2024-08-17 6/week @ 2024-08-24 16/week @ 2024-08-31 20/week @ 2024-09-07 17/week @ 2024-09-14 33/week @ 2024-09-21 20/week @ 2024-09-28 5/week @ 2024-10-05 21/week @ 2024-10-12 14/week @ 2024-10-19 14/week @ 2024-10-26 15/week @ 2024-11-02

64 downloads per month

16KB
356 lines

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

lib.rs:

This module provides a pretty straightfoward interface for converting Forsyth-Edwards notation (FEN) into the state of a game of chess and back.

FEN is a way of representing a board a string. This crate provides one such representation, fen::BoardState. If you want to be able to read FEN, you will to need to create a way to convert BoardState to your own board representation. If you want to export FEN, you will need to convert your own board representation to BoardState.

No runtime deps