filter out scores under 5
This commit is contained in:
parent
988044dc7f
commit
edc5193746
1 changed files with 1 additions and 1 deletions
2
game.js
2
game.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue