From a225f5e17274b99e6a589c4410ac61102b1bc635 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 18 Dec 2015 20:39:17 +0100 Subject: [PATCH] stupidIA just rand --- html/StupidIABattleship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index bd204f5..202cc2e 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -209,7 +209,8 @@ switch($_POST['act']){ case "fight": if((is_int($_POST['width'])) && (is_int($_POST['height']))){ echo rand(0,$_POST['width']).",".$_POST['height']; - die; + }else{ + echo "boaf".$_POST['width']."-".$_POST['height']; }