From afe83a5f6e5e349ae2de1f25e5572acfe508efd3 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 17 Dec 2015 16:16:41 +0100 Subject: [PATCH] fix js$ --- 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 98a62fb..6d52143 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -24,7 +24,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi var shipsArea= nbShip1 + 2 * nbShip2 + 3 * nbShip3 + 4 * nbShip4 + 5 * nbShip5 + 6 * nbShip6; if(shipsArea > parseInt(gridWidth * gridHeight / 2) ){ - alert("Map is too small. Sum of ships areas must be under 50% of the map." + shipsArea); + alert("Map is too small. Sum of ships areas must be under 50% of the map." + shipsArea + " " + parseInt(gridWidth * gridHeight / 2)); return; } var ships= [0,nbShip1,nbShip2,nbShip3,nbShip4,nbShip5,nbShip6];