From 1bc2148e978b21bb8041e3a1c71265b192086005 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Mon, 19 Jul 2021 15:45:14 +0900 Subject: [PATCH] Update combos.js Speed things up. --- combos.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/combos.js b/combos.js index a98cb65..cff460b 100644 --- a/combos.js +++ b/combos.js @@ -102,6 +102,7 @@ const FIRE=0; continue } var combinations=0 + var triedcombos=0 for (var combo of combos) { var driver1=ConvertDriver(temp.substr(0,3)) var driver2=ConvertDriver(temp.substr(3,3)) @@ -125,6 +126,10 @@ const FIRE=0; if (matches==3) { combinations++ } + triedcombos++ + if (combos.length-triedcombos+combinations