def closeStack(self): if self.cards[0].rank >= 10 and not cardsFaceDown(self.cards): self.flipMove() if len(self.game.s.talon.cards) == 4: self.game.s.talon.flipMove() for r in self.game.s.reserves: self.game.s.talon.moveMove(1, r)
def isGameWon(self): for r in self.s.rows: if r.cards and not cardsFaceDown(r.cards): return False return True