stupidIA just rand
This commit is contained in:
parent
98530a3f4d
commit
e1cfeb1e1b
|
@ -207,7 +207,12 @@ switch($_POST['act']){
|
||||||
echo json_encode($shipsCoords);
|
echo json_encode($shipsCoords);
|
||||||
break;
|
break;
|
||||||
case "fight":
|
case "fight":
|
||||||
print_r($_POST);
|
if((is_int($_POST['width'])) && (is_int($_POST['height']))){
|
||||||
|
echo rand(0,$_POST['width']).",".$_POST['height'];
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
die;
|
die;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user