Added ending stuff (?)
This commit is contained in:
parent
9aba33b864
commit
4174f133d0
@ -227,11 +227,11 @@ var i = 0;
|
||||
var callback = (scenarios)=>{
|
||||
i++;
|
||||
console.log(i, scenarios.length);
|
||||
if(i < 10){
|
||||
if(scenarios.map((scenario)=>(scenario.floors)).filter((floors)=>(floors[0].length == 0)).filter((floors)=>(floors[1].length == 0)).filter((floors)=>(floors[2].length == 0)).length == 0){
|
||||
nextSetOfScenarios(scenarios, callback);
|
||||
}
|
||||
else{
|
||||
console.log(scenarios);
|
||||
console.log("SOLVED", i);
|
||||
p.destroy();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user