From edc519374645289044d6f9b70653e8335331d4ee Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:21 -0500 Subject: [PATCH] filter out scores under 5 --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 4914911..12ec3dc 100644 --- a/game.js +++ b/game.js @@ -31,7 +31,7 @@ class Game extends GameBasic { 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) { let jk = jason.filter(y => y.ip == s[x][0]).map(y => y.ko).sort((a,b) => b - a);