fix js oups, infinite loop

This commit is contained in:
Gnieark 2015-12-11 11:43:47 +01:00
parent f1bbda1fb6
commit 68eb3a1a5f

View File

@ -30,7 +30,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
for (i=0; i < gridHeight ; i++){
trAdv=createElem("tr");
trMe=createElem("tr");
for (j=0; j < gridWidth ; i++){
for (j=0; j < gridWidth ; j++){
tdAdv=createElem("td",{"id":"adv" + i +"-" + j,"className": "empty"});
tdMe=createElem("td",{"id":"me" + i +"-" + j,"className": "empty"});
trAdv.appendChild(tdAdv);