fix php parse error

This commit is contained in:
Gnieark 2015-12-18 20:25:29 +01:00
parent 44b5e4eb34
commit 9d4a266eb4

View File

@ -218,7 +218,7 @@ switch ($_POST['act']){
$botParamsToSend=array(
'game' => 'Battleship',
'match_id' => $_SESSION['matchId']."-".$currentPlayer;
'match_id' => $_SESSION['matchId']."-".$currentPlayer,
'act' => 'fight',
'opponent' => $opponentName,
'width' => $_SESSION['width'],
@ -228,9 +228,9 @@ switch ($_POST['act']){
'ship3' => $postValues['nbShip3'],
'ship4' => $postValues['nbShip4'],
'ship5' => $postValues['nbShip5'],
'ship6' => $postValues['nbShip6']
'ship6' => $postValues['nbShip6'],
'your_hits' => json_encode($_SESSION['hits'][$player]),
'his_hits' => json_encode($_SESSION['hits'][$opponent]),
'his_hits' => json_encode($_SESSION['hits'][$opponent])
);
$anwserPlayer=get_IA_Response($currentBot['url'],$botParamsToSend);