srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
9 stars 2 forks source link

Territories which are disconnected don't count towards breakage #320

Closed WillB97 closed 3 years ago

WillB97 commented 3 years ago

Fix the bug

PeterJCLaw commented 3 years ago

Would be great to have some tests for this.

WillB97 commented 3 years ago

While having a test case may have prevented this issue in the first place, since we have now fixed this and the lock-out system isn't going to have any changes before it's removal at the end of this year the addition of a test case at this point seems of little benefit.

PeterJCLaw commented 3 years ago

While having a test case may have prevented this issue in the first place, since we have now fixed this and the lock-out system isn't going to have any changes before it's removal at the end of this year the addition of a test case at this point seems of little benefit.

I appreciate this that it feels like this may not change, however I'm not sure this is the right approach:

WillB97 commented 3 years ago

I've added tests for cut-off territories and locking territories through self-claiming