From b376637b9e323fa4b3599a4f2bac17ffc1d319db Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 13 Jun 2016 22:05:52 +0200 Subject: [PATCH] . --- connectfour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectfour.php b/connectfour.php index 274216b..f7a7a72 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); + return 42 - better_col($newBoard,$opponent,$me,$depth + 1) + $depth; }else{ return 0; }