This commit is contained in:
Gnieark 2016-06-20 15:51:37 +02:00
parent 3bad116750
commit 0ea6c418c5
2 changed files with 131 additions and 131 deletions

View File

@ -131,9 +131,9 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
} }
} }
} }
for each (var lo in grid['logs']){ for (var i = 1; i < grid['logs'].lenght; i++) {
var p=createElem("p"); var p=createElem("p");
p.innerHTML='o; p.innerHTML=grid['logs'][i];
document.getElementById('logs').appendChild(p); document.getElementById('logs').appendChild(p);
} }
fight(xd_check,fullLogs); fight(xd_check,fullLogs);