CoordPair::from_axes

This commit is contained in:
2025-03-05 20:14:18 -05:00
parent e60e546f2f
commit 8a7496a492
4 changed files with 18 additions and 31 deletions

View File

@@ -168,14 +168,10 @@ impl PlayerArena {
self.process_outcome(i, j, &o);
received_num += 1;
// print the leaderboard every 5 steps
if received_num % 5 == 0 {
term.clear_last_lines(self.players.len())
.expect("unable to clear prev lines");
let formatted_self = format!("{}", self);
term.write_str(&formatted_self)
.expect("unable to write leaderboard");
}
term.clear_last_lines(self.players.len())
.expect("unable to clear prev lines");
term.write_str(format!("{}", self).as_str())
.expect("unable to write leaderboard");
// break if all pairs were recieved
if received_num == num {