myopic_board/parse/
mod.rs1pub(crate) mod patterns;
2pub mod pgn;
3pub mod uci;
4
5#[cfg(test)]
6mod test {
7 use crate::ChessBoard;
8
9 #[test]
10 fn uci_position_1() {
11 let mut board = crate::start();
12 board
13 .play_uci(
14 "e2e4 e7e6 d2d4 d7d5 b1d2 c7c5 e4d5 c5d4 f1b5 c8d7 d5e6 f7e6 b5d7 d8d7 \
15 g1f3 b8c6 e1g1 g8f6 d2c4 g7g6 c1g5 f6e4 g5f4 e8c8",
16 )
17 .unwrap();
18 assert_eq!(
19 "2kr1b1r/pp1q3p/2n1p1p1/8/2NpnB2/5N2/PPP2PPP/R2Q1RK1 w - - 4 13",
20 board.to_fen().as_str()
21 )
22 }
23}