Update board.rs
I needed to add a "?"
This commit is contained in:
parent
0c5991fa20
commit
352e853beb
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user