PeterJCLaw / srcomp-cli

Command line tools for interacting with the state of the Student Robotics Competition
https://github.com/PeterJCLaw/srcomp/wiki
0 stars 2 forks source link

Add show-match-scores command #17

Open WillB97 opened 3 years ago

WillB97 commented 3 years ago

Prints ranking. league and match points for every match. Matches can be filtered to a single team.

Output format is:

$ srcomp show-match-scores dummy-comp HRS
                      |        Zone 0        |        Zone 1        |
 Display Name | Arena | TLA |Rank|Game|League| TLA |Rank|Game|League|
   Match 5    |   A   | BGS |  1 | 10 |    8 | HRS |  4 |  1 |    2 |
   Match 10   |   B   | SCC |  2 |  6 |    6 | DSF |  1 |  8 |    8 |
   Match 16   |   A   | QEH |  1 |  7 |    8 | HRS |  4 |  3 |    2 |
...
PeterJCLaw commented 3 years ago

As a general thought -- I'd probably have this tool just not output anything for the matches which haven't been scored yet. That's how https://studentrobotics.org/comp/points behaves and I'm assuming roughly what you're aiming this to be equivalent to? This approach avoids needing to work out what should happen to the knockout matches when filtering by TLA, which is a nice way to avoid some complexity.

PeterJCLaw commented 2 years ago

For when we come back to this -- https://github.com/PeterJCLaw/srcomp/pull/13 likely makes some of the score lookup which is needed here somewhat simpler.