Connect Four + +
+ + VS + +
+diff --git a/src/arenas/connectFour/doc-fr.html b/src/arenas/connectFour/doc-fr.html index b0c7be4..30c1f48 100644 --- a/src/arenas/connectFour/doc-fr.html +++ b/src/arenas/connectFour/doc-fr.html @@ -1,4 +1,4 @@ -
Il indique la colonne dans laquelle vous souhaitez jouer 0 à 7
diff --git a/src/arenas/connectFour/functions.php b/src/arenas/connectFour/functions.php index e69de29..09b1f14 100644 --- a/src/arenas/connectFour/functions.php +++ b/src/arenas/connectFour/functions.php @@ -0,0 +1,17 @@ + $botsCount)){ + error(400,"wrong parameters"); + die; + } + } + return array('bot1' => $_POST['bot1'],'bot2' => $_POST['bot2']); +} \ No newline at end of file diff --git a/src/arenas/connectFour/public.php b/src/arenas/connectFour/public.php index 3f6c6cb..6443536 100644 --- a/src/arenas/connectFour/public.php +++ b/src/arenas/connectFour/public.php @@ -2,10 +2,44 @@ require_once(__DIR__."/functions.php"); $bots=get_Bots_Array('connectFour'); - +$postParams=get_Post_Params(count($bots)); +if(!$postParams){ + $bot1=""; + $bot2=""; +}else{ + $bot1=$postParams['bot1']; + $bot2=$postParams['bot2']; +} ?>+ + VS + +
+