This commit is contained in:
Gnieark 2016-06-13 20:29:21 +02:00
parent 6d693f8bec
commit 7d891fac7f

View File

@ -85,16 +85,13 @@ function score($board,$me,$opponent,$colToPlay,$depth){
} }
} }
if($full){ if($full){
echo "full";
return 0; return 0;
} }
if($depth < 10){ if($depth < 5){
echo "depth";
return $depth - better_col($newBoard,$opponent,$me,$depth + 1); return $depth - better_col($newBoard,$opponent,$me,$depth + 1);
}else{ }else{
echo "zero";
return 0; return 0;
} }
} }