This commit is contained in:
gnieark 2016-06-29 00:42:01 +02:00
parent 9e9ec23d08
commit f9e4398583

View File

@ -76,7 +76,7 @@ $message=json_decode(file_get_contents('php://input'), TRUE);
switch($message['action']){ switch($message['action']){
case "init": case "init":
//file_put_contents(__DIR__."/log.txt",print_r($_POST,true));
$wantedVars=array( $wantedVars=array(
'opponent' => false, 'opponent' => false,
'width' => true, 'width' => true,
@ -213,7 +213,7 @@ switch($message['action']){
case "play-turn": case "play-turn":
//for debog arena //for debog arena
echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1); echo rand(0,$message['width'] -1).",".rand(0,$message['height'] -1);
die; die;