From 925242774023e7c30edd738cfe9a0c7c60fb7ffa Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 11 Dec 2015 12:35:34 +0100 Subject: [PATCH] does javascript permit it? --- src/arenas/Battleship/js.js | 5 ++++- src/arenas/Battleship/public.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index c6a9711..9f33363 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -20,7 +20,7 @@ function createElem(type,attributes) return elem; } -function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShip4,nbShip5,nbShip6,xd_check){ +function battleship(botsArray,bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShip4,nbShip5,nbShip6,xd_check){ document.getElementById('fightResult').innerHTML = ''; //dessiner les deux grilles @@ -28,6 +28,9 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi tableMe=createElem("table",{"id":"tblAdv","class":"battleshipGrid"}); for (i=0; i < gridHeight ; i++){ + //ligne de titre + + trAdv=createElem("tr"); trMe=createElem("tr"); for (j=0; j < gridWidth ; j++){ diff --git a/src/arenas/Battleship/public.php b/src/arenas/Battleship/public.php index d3eaad2..c4c3e2d 100644 --- a/src/arenas/Battleship/public.php +++ b/src/arenas/Battleship/public.php @@ -49,6 +49,6 @@ if(!$postParams){

-

+

\ No newline at end of file