We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It can happen that a player with 'heated' status is found on the pitch. See:
Maybe it's coming from:
class ClearBoard(Procedure): [...] if player.position is not None: # Set to ready player.state.reset()
Method reset() is called only for player on the board -> status remains to heated.
The text was updated successfully, but these errors were encountered:
I expect this test to pass. It doesn't.
def test_sweltering_heat(): game = get_game_coin_toss() for player_away, player_home in zip(game.state.home_team.players[:6], game.state.away_team.players[:6]): player_away.state.heated = True player_home.state.heated = True game.step(Action(ActionType.START_GAME)) game.step(Action(ActionType.HEADS)) game.step(Action(ActionType.RECEIVE)) game.step(Action(ActionType.SETUP_FORMATION_SPREAD)) game.step(Action(ActionType.END_SETUP)) game.step(Action(ActionType.SETUP_FORMATION_LINE)) game.step(Action(ActionType.END_SETUP)) for player in game.get_players_on_pitch(): assert player.position is not None assert not player.state.heated
Sorry, something went wrong.
Yes! You should check also:
No branches or pull requests
It can happen that a player with 'heated' status is found on the pitch. See:
Maybe it's coming from:
class ClearBoard(Procedure):
[...]
if player.position is not None:
# Set to ready
player.state.reset()
Method reset() is called only for player on the board -> status remains to heated.
The text was updated successfully, but these errors were encountered: