From 7366926906dc0926f2f92261d8933044b81b58f9 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 17 Dec 2015 16:13:08 +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 a5caf5d..7447d11 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -39,7 +39,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi ||((longestShip > gridWidth) && (longestShip > gridHeight)) ){ alert ("Map is too small. Grow it or reduce ships"); - break; + return; }