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