This commit is contained in:
Gnieark 2016-06-13 21:15:33 +02:00
parent 055b729773
commit 11cc175b13

View File

@ -90,7 +90,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){
}
if($depth < 6){
return better_col($newBoard,$opponent,$me,$depth + 1);
return -better_col($newBoard,$opponent,$me,$depth + 1);
}else{
return 0;
}