1 unstable release

Uses old Rust 2015

0.1.0 Aug 6, 2015

#9 in #proper

Download history 20/week @ 2025-06-25 6/week @ 2025-07-02 31/week @ 2025-07-09 41/week @ 2025-07-16 24/week @ 2025-07-23 23/week @ 2025-07-30 8/week @ 2025-08-06 20/week @ 2025-08-13 30/week @ 2025-08-20 15/week @ 2025-08-27 45/week @ 2025-09-03 29/week @ 2025-09-10 22/week @ 2025-09-17 27/week @ 2025-09-24 23/week @ 2025-10-01 16/week @ 2025-10-08

94 downloads per month

16KB
356 lines

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.


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

No runtime deps