From 47f86243a4c36c6caf77d93063507232c88e6f22 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 13:38:06 +0100 Subject: [PATCH] for debog --- src/arenas/Battleship/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 7f7f14f..48497a0 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -68,7 +68,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi for( var player=1; player <= 2 ; player ++){ 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"){ + if (grids[player][y][x] == 1){ document.getElementById( 'bot' + player + '-' + y + '-' + x).className="shipOn"; } }