diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 9b37617..e03e2fe 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -131,8 +131,8 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi } } } - for (var i = 1; i < grids['logs'].lenght; i++) { - alert (grids['logs'][i]); + for (var i = 0; i < grids['logs'].lenght; i++) { + //alert (grids['logs'][i]); var p=createElem("p"); p.innerHTML=grids['logs'][i]; document.getElementById('logs').appendChild(p);