From d34d9f90f21358b111a199533f9a6fa5418bea3f Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 20:48:22 +0100 Subject: [PATCH] js debug output --- src/arenas/Battleship/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index eb9c0ed..506d445 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -67,7 +67,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi var grids = JSON.parse(xhr.responseText); for( var player=1; player <= 2 ; player ++){ var p=createElem("p"); - p.innerHTML='Reponse joueurs:'xhr.responseText; + p.innerHTML='Reponse joueurs:' + xhr.responseText; document.getElementById('logs').appendChild(p); for (var y=0; y < grids[player].length ; y++){