Lancer un combat
+
diff --git a/html/index.php b/html/index.php index cc3cb91..f0a1db2 100644 --- a/html/index.php +++ b/html/index.php @@ -107,7 +107,19 @@ if($currentArena == ""){ include ("../src/home.php"); break; default: - include ("../src/arenas/".$currentArena."/public.php"); + //battle history for this arena + $hist=get_battles_history($currentArena); + echo ''; + include ("../src/arenas/".$currentArena."/public.php"); break; } ?> diff --git a/html/style.css b/html/style.css index 137e61e..32a9b55 100644 --- a/html/style.css +++ b/html/style.css @@ -54,3 +54,12 @@ section{ overflow: hidden; width: 90%; } +article{ + float: right; + width:70%; +} +aside{ + float:left; + width: 28%; +} + diff --git a/install.sql b/install.sql index 22baddd..816fc00 100644 --- a/install.sql +++ b/install.sql @@ -3,7 +3,8 @@ CREATE TABLE IF NOT EXISTS `arena_history` ( `player1_id` int(11) NOT NULL, `player2_id` int(11) NOT NULL, `player1_winsCount` int(11) NOT NULL, - `player2_winsCount` int(11) NOT NULL + `player2_winsCount` int(11) NOT NULL, + `nulCount` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `arena_history` ADD PRIMARY KEY (`game`,`player1_id`,`player2_id`); diff --git a/lang/en.php b/lang/en.php index a5a1cf5..f0603ed 100644 --- a/lang/en.php +++ b/lang/en.php @@ -2,5 +2,8 @@ $lang=array( 'SITE_NAME' => 'bots\'arena', 'SITE_DESCRIPTION' => 'blah blah blah but english', - 'HOME' => 'Home page' + 'HOME' => 'Home page', + 'VICTORIES' => 'victories', + 'DRAW' => 'drawn match', + 'MAKE_DUEL' => 'Organise a duel' ); \ No newline at end of file diff --git a/lang/fr.php b/lang/fr.php index 28d83f3..890596b 100644 --- a/lang/fr.php +++ b/lang/fr.php @@ -5,5 +5,9 @@ $lang=array( '
Bienvenue sur cette arène à bots.
Plusieurs jeux sont proposés ici. Vous ne devez pas y jouer, mais dévolopper le "bot" qui jouera en votre nom.
Ce site permet de faire s\'affronter les bots des différents développeurs.