.
This commit is contained in:
parent
65f077a416
commit
5b443bb457
|
@ -132,6 +132,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (var i = 1; i < grids['logs'].lenght; i++) {
|
for (var i = 1; i < grids['logs'].lenght; i++) {
|
||||||
|
alert (grids['logs'][i]);
|
||||||
var p=createElem("p");
|
var p=createElem("p");
|
||||||
p.innerHTML=grids['logs'][i];
|
p.innerHTML=grids['logs'][i];
|
||||||
document.getElementById('logs').appendChild(p);
|
document.getElementById('logs').appendChild(p);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user