You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When actions are produced by AI and UI, encountering invalid actions in Logic.advance is a bug, i.e., assertions are the right way to deal with that. However, when actions come over the network, we cannot consider invalid actions to be a bug in the application that receives them. Therefore, invalid actions must be dealt with differently in such a situation. Logic.advance may pass all invalid actions to ActionQueue.on_invalid_action of the action queue from which the action was received, and then that action queue may either throw an assertion error if it "knows" that it is connected to a local actor, or log or at the very least ignore the action if the queue is connected to a remote actor.
The text was updated successfully, but these errors were encountered:
When actions are produced by AI and UI, encountering invalid actions in
Logic.advance
is a bug, i.e., assertions are the right way to deal with that. However, when actions come over the network, we cannot consider invalid actions to be a bug in the application that receives them. Therefore, invalid actions must be dealt with differently in such a situation.Logic.advance
may pass all invalid actions toActionQueue.on_invalid_action
of the action queue from which the action was received, and then that action queue may either throw an assertion error if it "knows" that it is connected to a local actor, or log or at the very least ignore the action if the queue is connected to a remote actor.The text was updated successfully, but these errors were encountered: