From 1f6e135c1a28b63c5495c2f2b86a77d437af03fa Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 13 Jun 2016 16:30:26 +0200 Subject: [PATCH] . --- connectfour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectfour.php b/connectfour.php index 423496a..271fa4d 100644 --- a/connectfour.php +++ b/connectfour.php @@ -70,7 +70,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){ } $line=""; - for ($jx = kx , $jy = ky ; ($jx < 7) && ($jy < 6) ; $jx++ , $jy++){ + for ($jx = $ix , $jy = $iy ; ($jx < 7) && ($jy < 6) ; $jx++ , $jy++){ $line.=$newBoard[$jy][$jx]; } if(strpos($searchValue,$line) > -1){