From a78e2ebf2b8439fc1d6b18aef93ba2451aa0a68b Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 17 Dec 2015 19:10:00 +0100 Subject: [PATCH] for debog the debog --- src/arenas/Battleship/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index 5c9caf5..91afa98 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -4,7 +4,7 @@ function is_it_possible_to_place_ships_on_grid($gridWidth,$gridHeight,$nbShipsSi //not a perfect solution $shipsArea=$nbShipsSize1 + (2 * $nbShipsSize2) + (3 * $nbShipsSize3) + (4 * $nbShipsSize4) + (5 * $nbShipsSize5) + (6 * $nbShipsSize6); if( $shipsArea < intval($gridHeight * $gridWidth / 2)){ - echo $shipArea." ". intval($gridHeight * $gridWidth / 2); + echo $shipsArea." ". intval($gridHeight * $gridWidth / 2); return false; } //longest ship