diff --git a/src/arenas/Battleship/doc-fr.html b/src/arenas/Battleship/doc-fr.html index 88948db..cd2f505 100644 --- a/src/arenas/Battleship/doc-fr.html +++ b/src/arenas/Battleship/doc-fr.html @@ -1 +1,7 @@ -

Spécification pour faire votre bot à la bataille navale

\ No newline at end of file +

Initialisation de la partie

+

Pour démarrer la partie, l'arène va envoyer une requette http(s) à votre programme contenant les paramètres POST suivants:

+ \ No newline at end of file diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index 6d73da4..b9da5a5 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -15,3 +15,30 @@ function get_Post_Params($botsCount){ } return array('bot1' => $_POST['bot1'],'bot2' => $_POST['bot2']); } + +function generate_numeric_select($start,$end,$selected,$name,$id){ + $out="'.$i.''; + } + }else{ + for($i=$start; $i < $selected; $i++ ){ + $out.=''; + } + $out.=''; + for($i=$selected + 1; $i <= $end; $i++ ){ + $out.=''; + } + } + return $out.""; + +} \ No newline at end of file diff --git a/src/arenas/Battleship/public.php b/src/arenas/Battleship/public.php index e1b8907..ba79147 100644 --- a/src/arenas/Battleship/public.php +++ b/src/arenas/Battleship/public.php @@ -14,32 +14,45 @@ if(!$postParams){ ?>

-

- -  VS  - -

+

+ largeur: + +  Hauteur: + + +

+

+

+

+

+

+

+

+ +  VS  + +

\ No newline at end of file