From 42ac952d830fcc32c3869ad18d7f260e8ef822d2 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 14 Dec 2015 16:55:48 +0100 Subject: [PATCH] fix typo --- html/StupidIABattleship.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index 2a1912b..7701e49 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -83,7 +83,7 @@ switch($_POST['act']){ //Y a t'il la place pour le bateau vers le haut? if($ytest < $shipWidth){ - $top=false; + $top=false; }else{ $top=true; for($i = $ytest; $i > $ytest - $shipWidth; $i--){ @@ -109,7 +109,7 @@ switch($_POST['act']){ //droite if($xtest + $shipWidth > $width){ - $rigth=false; + $right=false; }else{ $right=true; for($i = $xtest; $i < $xtest + $shipWidth; $i++){ @@ -173,7 +173,7 @@ switch($_POST['act']){ } } - print_r($shipsCoords); + echo json_encode($shipsCoords); break; default: break;