diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index ddec1b8..d863588 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -138,8 +138,8 @@ switch ($_POST['act']){ ; - print_r($anwserPlayerJson); - if(!isset($anwserPlayerJson['boats'])){ + + if(!isset($anwserPlayerJson['reponse']['boats'])){ echo $fullLogs.$currentBot['name']." a fait une réponse non conforme, il perd 1."; if($player==1){