This commit is contained in:
Gnieark 2016-06-20 00:14:35 +02:00
parent d77e0e1577
commit 7cdb449608

View File

@ -209,10 +209,10 @@ switch($message['action']){
echo json_encode(array("name" => "gnieark", "boats" => $shipsCoords)); echo json_encode(array("name" => "gnieark", "boats" => $shipsCoords));
break; break;
case "fight": case "play-turn":
//for debog arena //for debog arena
echo '{"play":"'.rand(0,$_POST['width'] -1)."-".rand(0,$_POST['height'] -1).'"}'; echo '{"play":"'.rand(0,$message['board']['width'] -1).",".rand(0,$message['board']['height'] -1).'"}';
die; die;