links to ludus
This commit is contained in:
parent
2e2a16d454
commit
b5fa5b021b
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="author" content="Gnieark" />
|
||||
<title>Test ton bot</title>
|
||||
<title>ConnectFour's Ludus</title>
|
||||
<style type="text/css">
|
||||
body{width:100%; font-size:100%; line-height:140%; word-wrap:break-word; text-rendering:optimizelegibility;
|
||||
margin:0 auto; font-family : "lucida grande", "gill sans", arial, sans-serif; left:auto;}
|
||||
|
|
|
@ -55,5 +55,7 @@ $lang = array(
|
|||
'YOUR_EMAIL_FOR_BOT_VALIDATION' => 'Your email address (will serve to validate your bot)',
|
||||
'SAVE_BOT' => 'Save',
|
||||
'E_MAIL_EDIT_BOT' => "Hello Dude! \n Please Folow the next URL in order to validate your bot update.",
|
||||
'YOUR_EMAIL_FOR_BOT_EDIT' => 'E-mail used for add this bot:'
|
||||
'YOUR_EMAIL_FOR_BOT_EDIT' => 'E-mail used for add this bot:',
|
||||
'GO-TO-LUDUS' => 'Visit the ludus',
|
||||
'LUDUS-DETAIL' => '(Place to fix / improve your bot without scoring)'
|
||||
);
|
|
@ -55,5 +55,7 @@ $lang = array(
|
|||
'YOUR_EMAIL_FOR_BOT_VALIDATION' => 'Votre adresse e-mail (servira pour la validation de votre bot)',
|
||||
'SAVE_BOT' => 'Enregistrer',
|
||||
'E_MAIL_EDIT_BOT' => "Bonjour Dude! \n Suivez l'URL suivante pour valider les modifications sur votre bot.",
|
||||
'YOUR_EMAIL_FOR_BOT_EDIT' => 'L\'adresse e-mail qui a servi à l\'inscription du bot:'
|
||||
'YOUR_EMAIL_FOR_BOT_EDIT' => 'L\'adresse e-mail qui a servi à l\'inscription du bot:',
|
||||
'GO-TO-LUDUS' => 'Se rendre au ludus',
|
||||
'LUDUS-DETAIL' => '(Page pour débogguer votre bot sans comptage des scores)'
|
||||
);
|
|
@ -1 +1 @@
|
|||
Subproject commit 1d85f9ef3ecfc42bbc4f3c70d5e37ca9a65f629a
|
||||
Subproject commit 7c8b786228bb9e1561ff60a2d6f7f6ce91be6fee
|
|
@ -71,15 +71,11 @@ switch ($_POST['act']){
|
|||
'player-index' => $player
|
||||
);
|
||||
}
|
||||
/*
|
||||
* 'messageSend' => $data_string,
|
||||
* 'httpStatus' => $curl_getinfo($ch)['http_code'],
|
||||
* 'response' => $output,
|
||||
* 'responseArr' => $arr
|
||||
*/
|
||||
|
||||
get_IA_Response($_SESSION['bot1']['url'],$params[0]); //don't care about result
|
||||
get_IA_Response($_SESSION['bot2']['url'],$params[1]); //don't care about result
|
||||
|
||||
//don't break, continue
|
||||
|
||||
case "fight":
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ $arenas=array(
|
|||
'title' => "Tic Tac Toe",
|
||||
'metaDescription' => 'Affrontements de bots au TicTacToe, morpion',
|
||||
'jsFile'=> "js.js",
|
||||
'cssFile'=> "style.css"
|
||||
'cssFile'=> "style.css",
|
||||
'ludusUrl' => "/testBotScripts/tictactoe.html"
|
||||
),
|
||||
array(
|
||||
'id' => "Battleship",
|
||||
|
@ -33,7 +34,8 @@ $arenas=array(
|
|||
'title' => "Puissance 4",
|
||||
'metaDescription' => 'Affrontements de bots puissance 4',
|
||||
'jsFile'=> "js.js",
|
||||
'cssFile'=> "style.css"
|
||||
'cssFile'=> "style.css",
|
||||
'ludusUrl' => "/testBotScripts/connectfour.html"
|
||||
)
|
||||
|
||||
);
|
|
@ -305,9 +305,17 @@ function get_unique_id(){
|
|||
}
|
||||
function get_default_aside_content($currentArena){
|
||||
global $lang;
|
||||
$asideSectionContent = '<h2>infos:</h2><p>'.$lang['DEV-YOUR-OWN-BOT'].'<br/> <a href="/'.$currentArena.'/doc">'.$lang['DOC_SPECS_LINKS'].'</a></p>
|
||||
<h2>Scores</h2>';
|
||||
|
||||
//bla bla
|
||||
$asideSectionContent = '<h2>infos:</h2><p>'.$lang['DEV-YOUR-OWN-BOT'].'<br/> <a href="/'.$currentArena.'/doc">'.$lang['DOC_SPECS_LINKS'].'</a></p>';
|
||||
|
||||
//lien pour le ludus
|
||||
if(isset($currentArena['ludusUrl'])){
|
||||
echo '<p><a href="'.$currentArena['ludusUrl'].'">'.$lang['GO-TO-LUDUS'].'</a> '.$lang['LUDUS-DETAIL'].'</p>';
|
||||
}
|
||||
|
||||
//scores
|
||||
$asideSectionContent.='<h2>Scores</h2>';
|
||||
$podium=ELO_get_podium($currentArena);
|
||||
$count=0;
|
||||
$asideSectionContent.= '<ul class="podium">';
|
||||
|
|
Loading…
Reference in New Issue
Block a user