This commit is contained in:
Gnieark 2015-12-14 19:55:07 +01:00
parent d46636a74c
commit fe3e1b2e54

View File

@ -81,8 +81,8 @@ switch ($_POST['act']){
'ship6' => $postValues['nbShip6']
);
if(!$boatsPlayer1 = json_decode(get_IA_Response($bot1['url'],$bot1ParamsToSend))){
$anwserPlayer1=get_IA_Response($bot1['url'],$bot1ParamsToSend);
if(!$boatsPlayer1 = json_decode($anwserPlayer1)){
echo $bot1['name']." a fait une réponse non conforme, il perd.";
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
}