From afd63bac48b1671d3331111efbd9ec5035fc5a2b Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 13 Jun 2016 20:23:56 +0200 Subject: [PATCH] . --- connectfour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectfour.php b/connectfour.php index c90bafe..cd631ce 100644 --- a/connectfour.php +++ b/connectfour.php @@ -79,7 +79,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){ //if grid is full $full = true; for($i = 0; $i < 7; $i++){ - if($newBoard == "+"){ + if($newBoard[5][$i] == "+"){ $full = false; break; }