diff --git a/countBattles.txt b/countBattles.txt index d081bc1..0fba8d1 100755 --- a/countBattles.txt +++ b/countBattles.txt @@ -1 +1 @@ -1836 \ No newline at end of file +1845 \ No newline at end of file diff --git a/html/testBotScripts/tron.html b/html/testBotScripts/tron.html index 978ab3b..23308d2 100755 --- a/html/testBotScripts/tron.html +++ b/html/testBotScripts/tron.html @@ -73,7 +73,7 @@ function createPlayerForm(index){ divForm.appendChild(select); //url - var inputUrl = createElem("input", {"id","botUrl" + index, "type": "text", "value":"jljfhglfsghf", "placeholder":"http://Bot.url" }); + var inputUrl = createElem("input", {"id":"botUrl" + index, "type": "text", "value":"", "placeholder":"http://Bot.url" }); divForm.appendChild(inputUrl); diff --git a/src/DUEL.php b/src/DUEL.php index 0b158c5..ca00537 100644 --- a/src/DUEL.php +++ b/src/DUEL.php @@ -31,16 +31,6 @@ class DUEL{ } } - - - - - - - - - - class ELO { public $rank = 1500; //default rank diff --git a/src/act.php b/src/act.php index f9df799..d127730 100755 --- a/src/act.php +++ b/src/act.php @@ -100,7 +100,6 @@ switch($_POST['act']){ } } - break; case "editBot": @@ -193,10 +192,7 @@ switch($_POST['act']){ error(500,"Mailer Error: " . $mail->ErrorInfo); } else { //echo "Message sent!"; - } - - - + } } break; diff --git a/src/arenas/tron/Coords.php b/src/arenas/tron/Coords.php index dbb8c29..24bc986 100755 --- a/src/arenas/tron/Coords.php +++ b/src/arenas/tron/Coords.php @@ -12,18 +12,13 @@ class Coords{ error_log("a bot out of limits"); return false; } - $this->x = $x; $this->y = $y; - - } public function __toString(){ return $this->x.",".$this->y; - } - public function addDirection(Direction $dir){ return new Coords( $this->x + $dir->deltaX, diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js index 7ce82c5..d8da32d 100755 --- a/src/arenas/tron/js.js +++ b/src/arenas/tron/js.js @@ -35,9 +35,12 @@ function changeSelect(number,botId){ } } function show_bot_panel(number){ + + var botsColor = ['cyan','darkmagenta','darkred','darkslategrey','deeppink','dodgerblue','goldenrod','grey','indigo','lightgreen','mediumslateblue','midnightblue']; + //configurePlayers var fieldset = createElem('fieldset',{'class':'botFormulaire'}); - var legend = createElem('legend',{}); + var legend = createElem('legend',{"style": "color: " + botsColor[number] +'; font-weight: bold;'}); legend.innerHTML = 'bot ' + number; fieldset.appendChild(legend); var p=createElem('p'); diff --git a/src/arenas/tron/style.css b/src/arenas/tron/style.css index b307116..fa439cb 100755 --- a/src/arenas/tron/style.css +++ b/src/arenas/tron/style.css @@ -6,5 +6,5 @@ #configurePlayers{width: 100%;} #configurePlayers fieldset{display: block; width: 100px; float:left;} #logs{display:block;padding-left:10px; height: 200px; overflow-y: scroll;} -#logs p em {color: grey; font-size: 70%; test-transform:italic;} -code{font-family: monospace;} \ No newline at end of file +#logs p em {color: grey; font-size: 70%; font-style:italic;} +code{font-family: monospace;}