diff --git a/connectfour.php b/connectfour.php index 712cd5d..058e14d 100644 --- a/connectfour.php +++ b/connectfour.php @@ -91,7 +91,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){ if($depth < 7){ //CO - return 42 - better_col($newBoard,$opponent,$me,$depth + 1) + $depth; + return - better_col($newBoard,$opponent,$me,$depth + 1) + $depth; }else{ return 0; }