comparison frontends/quick_frontend/quick_card_game.py @ 185:fd2db62ea5eb

minor deletions
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 16:11:01 +0800
parents ae50b53ff868
children
comparison
equal deleted inserted replaced
184:8ea1510d474b 185:fd2db62ea5eb
126 def cardsPlayed(self, player, cards): 126 def cardsPlayed(self, player, cards):
127 """A card has been played by player""" 127 """A card has been played by player"""
128 if self.to_show: 128 if self.to_show:
129 self.to_show = [] 129 self.to_show = []
130 pl_cards = [] 130 pl_cards = []
131 if self.played[player] != None: #gof: à supprimer 131 if self.played[player] != None: #FIXME
132 for pl in self.played: 132 for pl in self.played:
133 self.played[pl] = None 133 self.played[pl] = None
134 for suit, value in cards: 134 for suit, value in cards:
135 pl_cards.append(self.cards[suit, value]) 135 pl_cards.append(self.cards[suit, value])
136 self.played[player] = pl_cards[0] 136 self.played[player] = pl_cards[0]