This commit is contained in:
Gnieark 2016-06-20 18:53:29 +02:00
parent 5b443bb457
commit 933903497a

View File

@ -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);