From 8adb38e2cfe008259630f12365d10e18a5802981 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 20 Jun 2016 15:52:38 +0200 Subject: [PATCH] . --- src/arenas/Battleship/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 902103d..d73fe56 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -131,9 +131,9 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi } } } - for (var i = 1; i < grid['logs'].lenght; i++) { + for (var i = 1; i < grids['logs'].lenght; i++) { var p=createElem("p"); - p.innerHTML=grid['logs'][i]; + p.innerHTML=grids['logs'][i]; document.getElementById('logs').appendChild(p); } fight(xd_check,fullLogs);