From 352e853bebbbc391f407c732e1a42009b5b42496 Mon Sep 17 00:00:00 2001 From: Steven Chase Date: Mon, 3 Feb 2025 12:19:47 -0500 Subject: [PATCH] Update board.rs I needed to add a "?" --- src/board.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/board.rs b/src/board.rs index 75d427b..d722678 100644 --- a/src/board.rs +++ b/src/board.rs @@ -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)); } -} \ No newline at end of file +}