diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index d69626d..2a1912b 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -68,7 +68,7 @@ switch($_POST['act']){ $shipsCoords=array(); //pour toutes les tailles de bateau - for($shipWidth = 6; $shipWidth >= 0; $shipWidth--){ + for($shipWidth = 6; $shipWidth > 0; $shipWidth--){ //nombre de bateau à placer de cette taille $dynVar='ship'.$shipWidth; $shipCount=$$dynVar; // #trollface