start dev connect four

This commit is contained in:
Gnieark 2016-05-09 21:14:45 +02:00
parent 217dd0a4d0
commit 5737665644
4 changed files with 26 additions and 0 deletions

View File

View File

@ -0,0 +1,18 @@
<?php
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'];
}
?>
<article>
<h2>Connect Four</div>
<div id="fightResult"></div>
</article>

View File

View File

@ -15,6 +15,14 @@ $arenas=array(
'metaDescription' => 'Affrontements de bots à la battaille navale', 'metaDescription' => 'Affrontements de bots à la battaille navale',
'jsFile'=> "js.js", 'jsFile'=> "js.js",
'cssFile'=> "style.css" 'cssFile'=> "style.css"
),
array(
'id' => "connectFour",
'url' => "/connectFour",
'title' => "Puissance 4",
'metaDescription' => 'Affrontements de bots puissance 4',
'jsFile'=> "js.js",
'cssFile'=> "style.css"
) )
); );