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