elo: fix display

This commit is contained in:
Simon Gardling 2025-04-28 20:00:43 -04:00
parent 94831b720b
commit 967f1f6efb
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -230,7 +230,7 @@ impl PlayerArena {
self.process_outcome(i, j, &o);
if received_num > 0 {
term.clear_last_lines(self.players.len())
term.clear_last_lines(self.players.len() + 1)
.expect("unable to clear prev lines");
}
term.write_str(format!("{}", self).as_str())
@ -238,6 +238,7 @@ impl PlayerArena {
received_num += 1;
p.inc(1);
println!();
// break if all pairs were recieved
if received_num == num {
break;