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)
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
def clickHandler(self, event): if not self.cards: self.game.s.talon.playMoveMove(1, self) return 1 return ReserveStack.clickHandler(self, event)