stupidIA just rand

This commit is contained in:
Gnieark 2015-12-18 20:38:03 +01:00
parent 98530a3f4d
commit e1cfeb1e1b

View File

@ -207,7 +207,12 @@ switch($_POST['act']){
echo json_encode($shipsCoords);
break;
case "fight":
print_r($_POST);
if((is_int($_POST['width'])) && (is_int($_POST['height']))){
echo rand(0,$_POST['width']).",".$_POST['height'];
die;
}
die;
break;
default: