make board scale better

This commit is contained in:
2025-02-07 21:39:17 -05:00
parent cc3d1b3d95
commit 41bc93276e
4 changed files with 24 additions and 24 deletions

View File

@@ -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..."),
}
}
}