PeterJCLaw / srcomp

Reliable software for running robotics competitions
https://github.com/PeterJCLaw/srcomp/wiki
GNU General Public License v3.0
0 stars 1 forks source link

Formalise expectations around corner identification #27

Open PeterJCLaw opened 1 year ago

PeterJCLaw commented 1 year ago

Currently it is possible to have corners which are numbers that do not start at zero, yet this does not fully work. For Smallpeice 2023 we're going to work around this as we've (@prophile) numbered the corners 1 & 2.

Unfortunately we have quite a few places where we assume that the corners are zero-indexed numbers and that we can trivially map between the index of a team within the list of teams in a match and the corners identities. This also means that the display names of the corners are bound to their ids in a somewhat implicit manner.

PeterJCLaw commented 1 year ago

Note also that currently SRComp-HTTP appears to be using the "sort keys" functionality of JSON encoding, which sort-of helps here but also masks some potential issues.