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