Esempio n. 1
0
 def apply(self, gamestate: GameState):
     current_player = gamestate.current_player()
     current_phase = gamestate.current_phase()
     player = self.player_chooser.submitted()
     gamestate.switch_player(player,
                             gamestate.current_phase_for_player(player))
     gamestate.switch_player(current_player, current_phase)
Esempio n. 2
0
 def apply(self, gamestate: GameState):
     player = self.player_chooser.submitted()
     if gamestate.current_player() != player:
         gamestate.switch_player(player, self.phase)
     else:
         gamestate.switch_phase(self.phase)