Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid handling TurnOverEvent in ball bounce #12

Closed
IBBoard opened this issue Oct 3, 2021 · 1 comment
Closed

Avoid handling TurnOverEvent in ball bounce #12

IBBoard opened this issue Oct 3, 2021 · 1 comment

Comments

@IBBoard
Copy link
Owner

IBBoard commented Oct 3, 2021

_process_ball_movement() iterates through ball bounce and throw-in events. It also picks up the TurnOver event, but we should be able to identify when it is going to happen before we read it and then let the outer loop (throw, blitz or other even type) handle it so that we're not doing a board.change_turn() in the middle of something else.

@IBBoard
Copy link
Owner Author

IBBoard commented Oct 24, 2021

Removed as part of #4

@IBBoard IBBoard closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant