This commit is contained in:
Gnieark 2016-07-01 07:22:58 +02:00
parent 3b160a564e
commit b6d49cdae7

View File

@ -46,7 +46,7 @@ switch ($_POST['act']){
//send init message //send init message
$gameId = get_unique_id(); $gameId = get_unique_id();
$responses = array(); $responses = array();
for ($botCount = 0; $botCount < count($bot); $botCount ++){ for ($botCount = 0; $botCount < count($bots); $botCount ++){
$messageArr = array( $messageArr = array(
'game-id' => "".$gameId, 'game-id' => "".$gameId,
'action' => 'init', 'action' => 'init',
@ -56,7 +56,7 @@ switch ($_POST['act']){
'player-index' => $botCount 'player-index' => $botCount
); );
$responses[] = get_IA_Response($bots[$botCount]->url,$messageArr); //don't care about result $responses[] = get_IA_Response($bots[$botCount]->url,$messageArr);
} }
print_r($responses); print_r($responses);
break; break;