debog output
This commit is contained in:
parent
9b7cde43bd
commit
c381411f74
|
@ -235,10 +235,10 @@ switch ($_POST['act']){
|
||||||
);
|
);
|
||||||
$anwserPlayer=get_IA_Response($currentBot['url'],$botParamsToSend);
|
$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(
|
echo json_encode(array(
|
||||||
'target' => '',
|
'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);
|
save_battle('Battleship',$_SESSION['bot1']['name'],$_SESSION['bot2']['name'],$opponent);
|
||||||
die;
|
die;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user