Add forgotten Knight parsing

This commit is contained in:
pavel committed 2025-02-22 15:54:28 +01:00
1 parent e798480b72
commit d797dc545e
1 file changed
+1
+1
View File
@@ -115,6 +115,7 @@ impl board::PieceType {
fn parse(c: char) -> Result<Self, ()> {
match c {
'P' => Ok(board::PieceType::Pawn),
'N' => Ok(board::PieceType::Knight),
_ => Err(()),
}
}