act.php
This commit is contained in:
parent
d46636a74c
commit
fe3e1b2e54
|
@ -81,8 +81,8 @@ switch ($_POST['act']){
|
||||||
'ship6' => $postValues['nbShip6']
|
'ship6' => $postValues['nbShip6']
|
||||||
|
|
||||||
);
|
);
|
||||||
|
$anwserPlayer1=get_IA_Response($bot1['url'],$bot1ParamsToSend);
|
||||||
if(!$boatsPlayer1 = json_decode(get_IA_Response($bot1['url'],$bot1ParamsToSend))){
|
if(!$boatsPlayer1 = json_decode($anwserPlayer1)){
|
||||||
echo $bot1['name']." a fait une réponse non conforme, il perd.";
|
echo $bot1['name']." a fait une réponse non conforme, il perd.";
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user