From cde61fdf5ff1f2f3010052b01b8a01d71656f21d Mon Sep 17 00:00:00 2001 From: gnieark Date: Wed, 15 Jun 2016 19:23:38 +0200 Subject: [PATCH] 2 --- connectfour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectfour.php b/connectfour.php index 395d898..f13e563 100644 --- a/connectfour.php +++ b/connectfour.php @@ -74,7 +74,7 @@ function should_opponent_win_if_i_play_at($map,$me,$opponent,$colToPlay){ return false; } - for($y = 0; (($map[$y][$colToPlay] <> "+") && ($map[$y][$colToPlay] <> "-")) && ; $y++){ + for($y = 0; (($map[$y][$colToPlay] <> "+") && ($map[$y][$colToPlay] <> "-")); $y++){ } $map[$y][$colToPlay] = $me;