This commit is contained in:
sigonasr2, Sig, Sigo 2021-07-20 04:01:17 +00:00
parent b76daf695f
commit 8b08f2a114
2 changed files with 790 additions and 0 deletions

View File

@ -109,6 +109,8 @@ const FIRE=0;
driver1[0]=-1 driver1[0]=-1
var driver2=ConvertDriver(temp.substr(3,3)) var driver2=ConvertDriver(temp.substr(3,3))
var driver3=ConvertDriver(temp.substr(6,3)) var driver3=ConvertDriver(temp.substr(6,3))
var driver4=ConvertDriver(temp.substr(0,3))
driver4[0]=-1
//See if any elements match up. If they do, then add 1 to the max combo count. //See if any elements match up. If they do, then add 1 to the max combo count.
var matches=0; var matches=0;
for (var ind=0;ind<3;ind++) { for (var ind=0;ind<3;ind++) {
@ -120,6 +122,14 @@ const FIRE=0;
matches++; matches++;
driver1=[] driver1=[]
} else } else
if (driver4.length>0&&(combo[ind]==FIRE||combo[ind]==LIGHT)) {
matches++;
driver4=[]
} else
if (driver4.includes(combo[ind])) {
matches++;
driver4=[]
} else
if (driver2.includes(combo[ind])) { if (driver2.includes(combo[ind])) {
matches++; matches++;
driver2=[] driver2=[]

780
combos3_3.out Normal file

File diff suppressed because one or more lines are too long