From c70c34ac97540f697c629d8fb910e393831d1499 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 16 Dec 2015 10:40:51 +0100 Subject: [PATCH] specs --- src/arenas/Battleship/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index deca0ce..35ef95f 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -53,6 +53,12 @@ function get_IA_Response($iaUrl,$postParams){ curl_close($ch); return htmlentities($output); } +function is_it_possible_to_place_ships_on_grid($gridWidth,$gridHeight,$nbShipsSize1,$nbShipsSize2,$nbShipsSize3,$nbShipsSize4,$nbShipsSize5,$nbShipsSize6){ + //return false or true + + +} + function place_ship_on_map($x1,$y1,$x2,$y2,$map){ if ((($x1 <> $x2) && ($y1 <> $y2)) OR (!isset($map[$y1][$x1]))