This commit is contained in:
Gnieark 2016-06-27 09:36:35 +02:00
parent 3b66174768
commit 83d4c1f5a0

View File

@ -399,7 +399,10 @@ switch($params['action']){
} }
} }
} }
if(count(array_unique($choice['colForNoLose'])) > 1){
//opponent has to places to win
remenber_previous_lap_is_a_bullshit();
}
if(count($choice['colForNoLose']) > 0){ if(count($choice['colForNoLose']) > 0){
//intersection entre $choice['colForNoLose'] et $colAvailable //intersection entre $choice['colForNoLose'] et $colAvailable
$intersection = array_intersect($choice['colForNoLose'],$colAvailable); $intersection = array_intersect($choice['colForNoLose'],$colAvailable);