10 Second Countdown Lose Condition #33
Closed
christopherpeers
started this conversation in
General
Replies: 1 comment 3 replies
-
Thank you for reporting this.
This is not exactly true as the test is performed every 200 ms. But basically, what you discovered is correct even thought is a matter of 200 ms and not one second, and it is probably a flaw that we should address. From there, I see two minor changes to improve the rules:
Would this address the problem? If nobody disagrees with this minor rule change, we are going to implement it very soon. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy,
To my understanding, the 10 second countdown for each player decreases at the exact same time starting from when the first player falls. Therefore, if both players fall within a second of each other, the number displayed (and counted) for each player will be exactly the same.
Subsequently, if both players remain on the floor until the timer decreases to zero, you would assume this was a draw or there would be a millisecond time difference as the reason for one side winning, or simply the side with the higher score at the time wins.
After reviewing the replay for Chrake Peith vs Pemile, in run_trigger #1087, I found out that when this situation occurs, it is red (the attacking player) that is declared the winner. This is because the referee code assigns the knockout to a single parameter "ko" and since blue is always checked after red, when the referee comes to check who is KO, it is always blue.
Lines 99-100
if self.ko_count[i] > 10000: # 10 seconds
ko = i
Lines 112-117
if ko == 0:
print('Red is KO. Blue wins!')
performance = 0
elif ko == 1:
print('Blue is KO. Red wins!')
performance = 1
It is possible to check this yourself by starting a match with both robots on the floor, and you will find red will always win.
I hope highlighting this will do some good for the competition, even though we are still in "walk around for the highest score and then hope for the best" purgatory.
Beta Was this translation helpful? Give feedback.
All reactions