Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_card_game.py @ 158:74aaf230a7c3
wix, quick_frontend: deactivated autoplay in Tarot game
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 04 Aug 2010 17:53:20 +0800 |
parents | 1d74c59a36a9 |
children | ae50b53ff868 |
comparison
equal
deleted
inserted
replaced
157:13888bdb72b6 | 158:74aaf230a7c3 |
---|---|
99 def myTurn(self): | 99 def myTurn(self): |
100 """Called when we have to play :)""" | 100 """Called when we have to play :)""" |
101 if self.state == "chien": | 101 if self.state == "chien": |
102 self.to_show = [] | 102 self.to_show = [] |
103 self.state = "play" | 103 self.state = "play" |
104 self.__fakePlay() #gof: | 104 #self.__fakePlay() #gof: |
105 | 105 |
106 def __fakePlay(self): | 106 def __fakePlay(self): |
107 """Convenience method for stupid autoplay | 107 """Convenience method for stupid autoplay |
108 /!\ don't forgot to comment any interactive dialog for invalid card""" | 108 /!\ don't forgot to comment any interactive dialog for invalid card""" |
109 #gof: | 109 #gof: |
147 | 147 |
148 for suit, value in played_cards: | 148 for suit, value in played_cards: |
149 self.hand.append(self.cards[suit, value]) | 149 self.hand.append(self.cards[suit, value]) |
150 | 150 |
151 self.hand.sort() | 151 self.hand.sort() |
152 self.__fakePlay() #gof: | 152 #self.__fakePlay() #gof: |
153 | 153 |