elo: fix live leaderboard
This commit is contained in:
@@ -173,7 +173,7 @@ impl PlayerArena {
|
||||
|
||||
// print the leaderboard every 5 steps
|
||||
if received_num % 5 == 0 {
|
||||
term.clear_last_lines(num)
|
||||
term.clear_last_lines(self.players.len())
|
||||
.expect("unable to clear prev lines");
|
||||
let formatted_self = format!("{}", self);
|
||||
term.write_str(&formatted_self)
|
||||
|
||||
Reference in New Issue
Block a user