From c381411f746747d4a767dab97b0d98aa5789540a Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 18 Dec 2015 21:35:13 +0100 Subject: [PATCH] debog output --- src/arenas/Battleship/act.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index 391fac2..0935e13 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -235,10 +235,10 @@ switch ($_POST['act']){ ); $anwserPlayer=get_IA_Response($currentBot['url'],$botParamsToSend); - if(!preg_match('/^[0-9]+,[0-9]$/',$anwserPlayer)){ + if(!preg_match('/^[0-9]+,[0-9]+$/',$anwserPlayer)){ echo json_encode(array( 'target' => '', - 'log' => $currentBot['name']." a fait une réponse non conforme, il perd.|".nl2br($anwserPlayer)."|" + 'log' => $currentBot['name']." a fait une réponse non conforme, il perd.".$anwserPlayer )); save_battle('Battleship',$_SESSION['bot1']['name'],$_SESSION['bot2']['name'],$opponent); die;