visuals
This commit is contained in:
@@ -59,12 +59,13 @@ impl Engine {
|
||||
|
||||
// check if there is a winner
|
||||
if let Some(_winner) = self.board.has_winner() {
|
||||
println!("{} wins!", self.players[self.turn].name());
|
||||
println!("{}", self.board);
|
||||
println!("The winner is: {}", self.players[self.turn].name());
|
||||
break;
|
||||
}
|
||||
|
||||
if !self.board.valid_moves_available() {
|
||||
println!("It's a draw!");
|
||||
println!("{}", self.board);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user