Example #1
0
 def clickHandler(self, event):
     if (not self.cards
             and self.game.s.talon.cards and self.game.isValidPlay(
                 self.id,
                 self.game.s.talon.getCard().rank + 1)):
         self.game.s.talon.playMoveMove(1, self)
         return 1
     return ReserveStack.clickHandler(self, event)
Example #2
0
 def clickHandler(self, event):
     game = self.game
     for row in game.s.rows:
         if len(row.cards) < 1:
             return ReserveStack.clickHandler(self, event)
     self.game.emptyStack = self.id
     self.game.playSample("drop", priority=200)
     self.playMoveMove(1, self.game.s.foundations[0])
     return True
Example #3
0
 def clickHandler(self, event):
     if not self.cards:
         self.game.s.talon.playMoveMove(1, self)
         return 1
     return ReserveStack.clickHandler(self, event)
Example #4
0
 def clickHandler(self, event):
     if not self.cards:
         self.game.s.talon.playMoveMove(1, self)
         return 1
     return ReserveStack.clickHandler(self, event)