js debug output

This commit is contained in:
gnieark 2015-12-15 20:48:22 +01:00
parent 145ab319f5
commit d34d9f90f2

View File

@ -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++){