fix js
This commit is contained in:
parent
fc3fcd0abf
commit
f1bbda1fb6
|
@ -30,7 +30,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
|
||||||
for (i=0; i < gridHeight ; i++){
|
for (i=0; i < gridHeight ; i++){
|
||||||
trAdv=createElem("tr");
|
trAdv=createElem("tr");
|
||||||
trMe=createElem("tr");
|
trMe=createElem("tr");
|
||||||
for (j=0; j < gridwidth ; i++){
|
for (j=0; j < gridWidth ; i++){
|
||||||
tdAdv=createElem("td",{"id":"adv" + i +"-" + j,"className": "empty"});
|
tdAdv=createElem("td",{"id":"adv" + i +"-" + j,"className": "empty"});
|
||||||
tdMe=createElem("td",{"id":"me" + i +"-" + j,"className": "empty"});
|
tdMe=createElem("td",{"id":"me" + i +"-" + j,"className": "empty"});
|
||||||
trAdv.appendChild(tdAdv);
|
trAdv.appendChild(tdAdv);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user