This commit is contained in:
Gnieark 2016-06-27 14:40:23 +02:00
parent 9d199460f5
commit db8860f3db

View File

@ -383,8 +383,6 @@ switch($params['action']){
$learnedCells[] = $r[0];
}
$trace.="|learnedCells:".implode(",",$learnedCells);
$colAvailable=array();
for($i=0;$i<7;$i++){
if((($params['board'][5][$i] == "+") OR ($params['board'][5][$i] == "-"))
@ -407,6 +405,9 @@ switch($params['action']){
//opponent has to places to win
remenber_previous_lap_is_a_bullshit();
}
$trace.="|learnedCells:".implode(",",$learnedCells)."|colAva:".implode(",",$colAvailable)."|colforNoLose:".implode(",",$choice['colForNoLose'])."|col for no loose depth1:".implode(",",$choice['colForNoLose1']);
if(count($choice['colForNoLose']) > 0){
//intersection entre $choice['colForNoLose'] et $colAvailable
$intersection = array_intersect($choice['colForNoLose'],$colAvailable);