From 3fcf4f0ce5061c06cf43ccd04796071b089d4f14 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 13:30:56 +0100 Subject: [PATCH] affiche boats --- src/arenas/Battleship/js.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index f67282d..e20c5ee 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -69,6 +69,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi for (var y=0; y < grids[player].count ; y++){ for (var x=0; x < grids[player][y].count ; x++){ if (grids[player][y][x] == "1"){ + alert('bot' + player + '-' + y + '-' + x); document.getElementById( 'bot' + player + '-' + y + '-' + x).className="shipOn"; } }