From eed0b2ff06eba19ed5dcf845ba8f48cbce033cc3 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 19 Dec 2015 13:57:39 +0100 Subject: [PATCH] verif arena --- html/StupidIABattleship.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index 85d17d4..f9c5c4d 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -207,6 +207,10 @@ switch($_POST['act']){ echo json_encode($shipsCoords); break; case "fight": + //for debog arena + file_put_contents(__DIR__."log.txt",print_r($_POST)); + + // if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){ echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1); // }else{