Update board.rs

I needed to add a "?"
This commit is contained in:
Steven Chase 2025-02-03 12:19:47 -05:00 committed by GitHub
parent 0c5991fa20
commit 352e853beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ impl fmt::Display for Board {
// Print the current score
let (white_score, black_score) = self.get_score();
writeln!(f, "White Score: {}\nBlack Score: {}", white_score, black_score);
writeln!(f, "White Score: {}\nBlack Score: {}", white_score, black_score)?;
// Print game over screen
if self.game_over() == true {
@ -462,4 +462,4 @@ mod test {
assert_eq!(board.get(6, 0), &Some(Piece::Black));
}
}
}