Commit 3f41c139 authored by Martin Bachmann's avatar Martin Bachmann
Browse files

Changed to "winner takes it all" mode.

parent 7f50d285
Pipeline #12785 passed with stages
in 2 minutes and 43 seconds
......@@ -40,10 +40,8 @@ Pond.endBattle = function(survivors) {
console.log(Pond.Battle.RANK);
console.log("Round " + Pond.Battle.ROUND_RANKS.length + " finished!");
// Update Bot Stats table
Pond.Battle.BOT_STATS[Pond.Battle.RANK[0].name] += 3;
Pond.Battle.BOT_STATS[Pond.Battle.RANK[1].name] += 2;
Pond.Battle.BOT_STATS[Pond.Battle.RANK[2].name] += 1;
// Update Bot Stats table - winner takes it all for now
Pond.Battle.BOT_STATS[Pond.Battle.RANK[0].name] += 1;
var statsTable = "<table>\n<tr><th>Bot</th><th>Points</th></tr>";
for (var name in Pond.Battle.BOT_STATS) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment