From 330ba4266d9ee9540f54e08a5c7aca702bde5cad Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 20 Jun 2016 20:50:15 +0200 Subject: [PATCH] . --- src/arenas/Battleship/js.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 64cdceb..abde0f7 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -131,13 +131,12 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi } } } - for (var i = 0; i < grids['logs'].lenght; i++) { - //alert (grids['logs'][i]); + for (var i = 0; i < grids['logs'].length; i++) { var p = createElem("p"); - p.innerHTML = grids[logs][i]; + p.innerHTML = grids['logs'][i]; document.getElementById('logs').appendChild(p); } - //fight(xd_check,fullLogs); + fight(xd_check,fullLogs); } }};