Add forgotten Knight parsing

This commit is contained in:
2025-02-22 15:54:28 +01:00
parent e798480b72
commit d797dc545e

View File

@@ -115,6 +115,7 @@ impl board::PieceType {
fn parse(c: char) -> Result<Self, ()> { fn parse(c: char) -> Result<Self, ()> {
match c { match c {
'P' => Ok(board::PieceType::Pawn), 'P' => Ok(board::PieceType::Pawn),
'N' => Ok(board::PieceType::Knight),
_ => Err(()), _ => Err(()),
} }
} }