From 2865b4b384448286e622ce4c9eacdf9014683893 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 12 May 2016 17:08:20 +0200 Subject: [PATCH] fix php parse error --- src/arenas/connectFour/act.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arenas/connectFour/act.php b/src/arenas/connectFour/act.php index f7007c8..2be0e44 100644 --- a/src/arenas/connectFour/act.php +++ b/src/arenas/connectFour/act.php @@ -120,7 +120,7 @@ switch ($_POST['act']){ //tester si 4 pions allignés diagonale vers la droite if((!$wins) && ($i < 4) && ($j < 3)){ $wins=true; - for($x = $i+1; $y = $j+1; $x < $i+4 ; $x++; $y++){ + for($x = $i+1, $y = $j+1; $x < $i+4 ; $x++, $y++){ if($_SESSION['map'][$j][$x] <> $you){ $wins=false; break; @@ -130,7 +130,7 @@ switch ($_POST['act']){ //tester si 4 pions allignés diagonale vers la gauche if((!$wins) && ($i > 3) && ($j < 3)){ $wins=true; - for($x = $i-1; $y = $j+1; $x > $i - 4 ; $x++; $y++){ + for($x = $i-1, $y = $j+1; $x > $i - 4 ; $x++, $y++){ if($_SESSION['map'][$j][$x] <> $you){ $wins=false; break;