From f45994ebdacf7ccbe7034952aebe751093621232 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 19:46:46 +0100 Subject: [PATCH] php debug 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 550be0f..9989c51 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -121,7 +121,7 @@ switch ($_POST['act']){ $nbBoatsIwant[$long]-=1; $grid[$player]=place_ship_on_map($xStart,$yStart,$xEnd,$yEnd,$grid[$player]); if(!$grid[$player]){ - echo $currentBot['name']." n'a pas placé correctement ses bateaux. Certains se chevauchent. Il perd
'.$anwserPlayer.'
"; + echo $currentBot['name']." n'a pas placé correctement ses bateaux. Certains se chevauchent. Il perd
".$anwserPlayer."
"; if($player==1){ save_battle('Battleship',$bot1['name'],$bot2['name'],2); }else{ @@ -132,7 +132,7 @@ switch ($_POST['act']){ } foreach($nbBoatsIwant as $nb){ if($nb <> 0){ - echo $currentBot['name']." n'a pas placé correctement ses bateaux. Il perd. sa réponse:
'.$anwserPlayer.'
"; + echo $currentBot['name']." n'a pas placé correctement ses bateaux. Il perd. sa réponse:
".$anwserPlayer."
"; if($player==1){ save_battle('Battleship',$bot1['name'],$bot2['name'],2); }else{