This commit is contained in:
Gnieark 2016-06-20 20:50:15 +02:00
parent b4d9b6f44d
commit 330ba4266d

View File

@ -131,13 +131,12 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
} }
} }
} }
for (var i = 0; i < grids['logs'].lenght; i++) { for (var i = 0; i < grids['logs'].length; 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);
} }
//fight(xd_check,fullLogs); fight(xd_check,fullLogs);
} }
}}; }};