From 4f6c0f87866e9c6f7fba74db6554986f29d7b1ef Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 13 Jun 2016 21:17:30 +0200 Subject: [PATCH] . --- connectfour.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectfour.php b/connectfour.php index 4484027..51cfcbb 100644 --- a/connectfour.php +++ b/connectfour.php @@ -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; }