CoordPair::from_axes
This commit is contained in:
12
src/elo.rs
12
src/elo.rs
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user