From b717a85e53a4bfae4d66c9c6fe2e213f40ced78e Mon Sep 17 00:00:00 2001 From: gnieark Date: Wed, 16 Dec 2015 18:32:48 +0100 Subject: [PATCH] place ships function --- src/arenas/Battleship/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index 723c8b8..9079a2e 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -17,8 +17,9 @@ function is_it_possible_to_place_ships_on_grid($gridWidth,$gridHeight,$nbShipsSi if( (!isset($longestShip)) OR(($longestShip > $gridWidth) && ($longestShip > $gridHeight)) ){ - return false: + return false; } + return true; } function get_Post_Params($ccbotsCount){ $keysBots=array('bot1','bot2');