From c5da98238d4bc7aace874315141c122e24ab3f98 Mon Sep 17 00:00:00 2001 From: 08draven Date: Wed, 6 Nov 2024 01:13:56 -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);