コード例 #1
0
ファイル: Game.py プロジェクト: pew-pew/AnkhPort
    def step(self):
        self.players[self.playing_player].character.win(self)
        on_turn_begin(self.playing_player)
        Cards.ask_about_house(self)
        self.players[self.playing_player].play_card(self)
        if self.players[self.playing_player].must_remove_card:
            selected_card = my_select_card(self.players[self.playing_player].cards, self.playing_player)
            del(self.players[self.playing_player].cards[self.players[self.playing_player].cards.index(selected_card)])
	    
        cards_in_arm = len(self.players[self.playing_player].cards) + self.players[self.playing_player].bad_cards
        self.players[self.playing_player].append_card(max(0, 5 - cards_in_arm), self)
        self.playing_player = (self.playing_player + 1) % self.number_of_players
        for region in self.desk.regions:
            region.played = False