Implement Knight

This commit is contained in:
2025-02-22 15:39:49 +01:00
parent 7cc7fa3e70
commit eda2ec6c93
3 changed files with 46 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ impl std::fmt::Display for board::PieceType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
board::PieceType::Pawn => write!(f, "P"),
board::PieceType::Knight => write!(f, "N"),
}
}
}