comparison frontends/wix/card_game.py @ 97:01d7bd6f0e86

removed forgotten autoplay hack
author Goffi <goffi@goffi.org>
date Wed, 02 Jun 2010 16:00:09 +0930
parents be206a3d1a9b
children 63c9067a1499
comparison
equal deleted inserted replaced
96:c8518b9a8025 97:01d7bd6f0e86
173 """Called when we have to play :)""" 173 """Called when we have to play :)"""
174 if self.state == "chien": 174 if self.state == "chien":
175 self.to_show = [] 175 self.to_show = []
176 self.state = "play" 176 self.state = "play"
177 177
178 #tmp gof: FIXME
179 card = self.hand[-1]
180 self.parent.host.bridge.tarotGamePlayCards(self.player_nick, self.referee, [(card.suit, card.value)], profile_key = self.parent.host.profile)
181 del self.hand[-1]
182 self.state = "wait"
183 self._recalc_ori()
184 self.Refresh()
185
186 def showScores(self, xml_data, winners, loosers): 178 def showScores(self, xml_data, winners, loosers):
187 """Called when the player as to select hist contrat 179 """Called when the player as to select hist contrat
188 @param xml_data: SàT xml representation of the form""" 180 @param xml_data: SàT xml representation of the form"""
189 form = Form(self.parent.host, xml_data, title = _('You win \o/') if self.player_nick in winners else _('You loose :('), options = ['NO_CANCEL']) 181 form = Form(self.parent.host, xml_data, title = _('You win \o/') if self.player_nick in winners else _('You loose :('), options = ['NO_CANCEL'])
190 182