Update combos.js

Speed things up.
main
sigonasr2, Sig, Sigo 3 years ago committed by GitHub
parent 4e6065454d
commit 1bc2148e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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<maxcombos) {
continue;
}
}
if (maxcombos<combinations) {
maxcombos=combinations

Loading…
Cancel
Save