filter out scores under 5

This commit is contained in:
biglyderv 2024-11-06 01:13:56 -05:00
parent ff070e90b6
commit c5da98238d

View file

@ -31,7 +31,7 @@ class Game extends GameBasic {
scores[score] = Math.round(Math.sqrt(s)); scores[score] = Math.round(Math.sqrt(s));
} }
let s = Object.entries(scores).sort((a, b) => b[1] - a[1]); let s = Object.entries(scores).sort((a, b) => b[1] - a[1]).filter(a => a[1] > 5);
for (let x in s) { for (let x in s) {
let jk = jason.filter(y => y.ip == s[x][0]).map(y => y.ko).sort((a,b) => b - a); let jk = jason.filter(y => y.ip == s[x][0]).map(y => y.ko).sort((a,b) => b - a);