mhauskn / rcssserver

RoboCup 2D Soccer Server
GNU Lesser General Public License v3.0
6 stars 13 forks source link

What is supposed to happen if players from both sides can kick the ball? #6

Open drallensmith opened 7 years ago

drallensmith commented 7 years ago

https://github.com/mhauskn/rcssserver/blob/b2a8bf1495323ef01e576e250c73dd5a6eba91fa/src/referee.cpp#L3094

It looks like it will depend on the ordering of the players by the for loop; which side comes first?

drallensmith commented 7 years ago

Oops. Didn't see the "break". So if the defense can kick the ball a total of two times, unless the offense was able to kick the ball and not the defense between those two times, the defense wins. (I'm not sure if I agree with this, but OK.) Perhaps this should be clarified in the docs? I also want to explore more what happens when the goalie catches the ball.