fix js
This commit is contained in:
parent
7fe4570c56
commit
2d3eccec4d
|
@ -27,8 +27,6 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
|
|||
//dessiner les deux grilles
|
||||
var tableAdv=createElem("table",{"id":"tblAdv","class":"battleshipGrid"});
|
||||
var tableMe=createElem("table",{"id":"tblAdv","class":"battleshipGrid"});
|
||||
|
||||
for (var i=0; i < gridHeight ; i++){
|
||||
//ligne de titre
|
||||
var trTitre1=createElem("tr");
|
||||
var trTitre2=createElem("tr");
|
||||
|
@ -37,8 +35,11 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
|
|||
tdTitre1.innerHTML = bot1IdName[1];
|
||||
tdTitre2.innerHTML = bot2IdName[1];
|
||||
trTitre1.appendChild(tdTitre1);
|
||||
tableAdv.appendChild(trTitre1);
|
||||
trTitre2.appendChild(tdTitre2);
|
||||
tableMe.appendChild(trTitre2);
|
||||
|
||||
for (var i=0; i < gridHeight ; i++){
|
||||
var trAdv=createElem("tr");
|
||||
var trMe=createElem("tr");
|
||||
for (var j=0; j < gridWidth ; j++){
|
||||
|
|
Loading…
Reference in New Issue
Block a user