elo: fix live leaderboard

This commit is contained in:
2025-03-05 10:47:38 -05:00
parent 681479ce4e
commit f2fd89b50f

View File

@@ -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)