Skip to content

Commit

Permalink
Adapt to the new robocode csv format
Browse files Browse the repository at this point in the history
  • Loading branch information
qunying91 committed May 27, 2021
1 parent 962bdfb commit e72adc8
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 17 deletions.
Binary file not shown.
16 changes: 16 additions & 0 deletions project-rumble/best-bot-program/backup/20210527/teams.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
LURumble.UnihorseForce_g01 1;Bob;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.BananaSplit_g02 1;Bob;DopeBot;X-Terminator;X-Terminator;X-Terminator
LURumble.Alligators_g03 1;Bob;Rut;Rut;Rut;Dexterbot
LURumble.SHARP_g04 1.0;Markov;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.Monochrome_g05 ;Hannibal;Wolftank;Wolftank;Wolftank;Wolftank
LURumble.LOA3_g06 1.0;Markov;Coborode;Coborode;Coborode;Coborode
LURumble.fsociety_g07 ;Hannibal;TRACIE;Wolftank;Wolftank;Wolftank
LURumble.Trubbel_g08 ;BasicLeaderBot;Rainbow;Rainbow;MrRobot;MrRobot
LURumble.Dementors_g09 ;BasicLeaderBot;Rut;Rut;Wolftank;Wolftank
LURumble.DopeGang_g10 1;Bob;Rut;Rut;Rut;Rut
LURumble.R2D2_g11 1;Bob;Rut;Rut;Rut;Rut
LURumble.SpicyBoys_g12 ;Hannibal;Rainbow;Rainbow;Rainbow;Rainbow
LURumble.Imperiet_g13 1;Bob;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.SjonsjonsNudistklubb_g14 ;Hannibal;Sharp;MrRobot;MrRobot;MrRobot
LURumble.SpiritOfMorgan_g15 1.0;Markov;Wolftank;Wolftank;Wolftank;Wolftank
LURumble.YouWontBelieve_g16 ;Hannibal;Rut;Rut;Rut;Rut
Binary file modified project-rumble/best-bot-program/bestbot.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions project-rumble/best-bot-program/example/match.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
May 27, 2021, 8:35:16 AM
Results for 2 rounds
Rank,Robot Name, Total Score ,Survival,Surv Bonus,Bullet Dmg,Bullet Bonus,Ram Dmg * 2,Ram Bonus, 1sts , 2nds , 3rds
1st,sample.FireTeam (1),1670 (100%),600,120,792,158,0,0,2,0,0
2nd,sample.SittingDuckTeam (2),0 (0%),0,0,0,0,0,0,0,2,0
$
18 changes: 2 additions & 16 deletions project-rumble/best-bot-program/example/teams.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
LURumble.UnihorseForce_g01 1;Bob;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.BananaSplit_g02 1;Bob;DopeBot;X-Terminator;X-Terminator;X-Terminator
LURumble.Alligators_g03 1;Bob;Rut;Rut;Rut;Dexterbot
LURumble.SHARP_g04 1.0;Markov;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.Monochrome_g05 ;Hannibal;Wolftank;Wolftank;Wolftank;Wolftank
LURumble.LOA3_g06 1.0;Markov;Coborode;Coborode;Coborode;Coborode
LURumble.fsociety_g07 ;Hannibal;TRACIE;Wolftank;Wolftank;Wolftank
LURumble.Trubbel_g08 ;BasicLeaderBot;Rainbow;Rainbow;MrRobot;MrRobot
LURumble.Dementors_g09 ;BasicLeaderBot;Rut;Rut;Wolftank;Wolftank
LURumble.DopeGang_g10 1;Bob;Rut;Rut;Rut;Rut
LURumble.R2D2_g11 1;Bob;Rut;Rut;Rut;Rut
LURumble.SpicyBoys_g12 ;Hannibal;Rainbow;Rainbow;Rainbow;Rainbow
LURumble.Imperiet_g13 1;Bob;MrRobot;MrRobot;MrRobot;MrRobot
LURumble.SjonsjonsNudistklubb_g14 ;Hannibal;Sharp;MrRobot;MrRobot;MrRobot
LURumble.SpiritOfMorgan_g15 1.0;Markov;Wolftank;Wolftank;Wolftank;Wolftank
LURumble.YouWontBelieve_g16 ;Hannibal;Rut;Rut;Rut;Rut
sample.FireTeam;Fire;Fire
sample.SittingDuckTeam;SittingDuck;SittingDuck;SittingDuck
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void parseBattle(Map<String, Collection<BattleResult>> teamResults, Strin
int nRounds = Integer.parseInt(lines[1].replaceAll("[\\D]", ""));
for (int i = 3; i < lines.length; i++) {
String[] fields = lines[i].split(",");
String teamName = fields[1];
String teamName = fields[1].split("\\s+")[0];
String scoreText = fields[2];
Scanner sc = new Scanner(scoreText);
int score = sc.nextInt();
Expand Down

0 comments on commit e72adc8

Please sign in to comment.