From ad133c5b296554045dcb5254ce13abce9c45d3ec Mon Sep 17 00:00:00 2001 From: gnieark Date: Thu, 10 Dec 2015 22:40:08 +0100 Subject: [PATCH] liste des parametres battleship --- src/arenas/Battleship/doc-fr.html | 8 +++- src/arenas/Battleship/functions.php | 27 ++++++++++++ src/arenas/Battleship/public.php | 65 +++++++++++++++++------------ 3 files changed, 73 insertions(+), 27 deletions(-) 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