From 297f74c9fc435d9be768a9741f8aa90f38fc9cb4 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 23:55:24 +0100 Subject: [PATCH] grrrr --- html/StupidIABattleship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index 05941e0..f5221a7 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -94,7 +94,7 @@ switch($_POST['act']){ //vers le bas $bottom=true; - for($y=$ytest; $i < $ytest + $shipWidth -1; $i++){ + for($i=$ytest; $i < $ytest + $shipWidth -1; $i++){ if ((!isset($map[$i][$xtest])) OR ($map[$i][$xtest] == 1)){ $bottom=false;