make board scale better
This commit is contained in:
12
src/game.rs
12
src/game.rs
@@ -11,9 +11,9 @@ impl std::fmt::Display for Game {
|
||||
f,
|
||||
"Players: {} ({}) and {} ({})",
|
||||
self.players[0].name(),
|
||||
self.players[0].color().text(),
|
||||
self.players[0].color().symbol(),
|
||||
self.players[1].name(),
|
||||
self.players[1].color().text()
|
||||
self.players[1].color().symbol()
|
||||
)?;
|
||||
write!(f, "{}", self.board)?;
|
||||
Ok(())
|
||||
@@ -73,14 +73,6 @@ impl Game {
|
||||
}
|
||||
|
||||
self.step(current_player);
|
||||
|
||||
// std::thread::sleep(Duration::from_millis(200));
|
||||
}
|
||||
// Print Game Over Screen
|
||||
println!("{}", self);
|
||||
match self.board.get_winner() {
|
||||
Some(winner) => println!("Game Over! {} Wins!", winner.text()),
|
||||
None => print!("It's a tie!! You either both suck or are both really good..."),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user