def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): OpenStack.moveMove(self, ncards, to_stack, frames, shadow) if self.game.base_rank is None and to_stack in self.game.s.foundations: old_state = self.game.enterState(self.game.S_FILL) self.game.saveStateMove(2 | 16) # for undo self.game.base_rank = to_stack.cards[-1].rank self.game.saveStateMove(1 | 16) # for redo self.game.leaveState(old_state)
def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): OpenStack.moveMove(self, ncards, to_stack, frames, shadow) if self.game.base_rank is None and to_stack in self.game.s.foundations: old_state = self.game.enterState(self.game.S_FILL) self.game.saveStateMove(2 | 16) # for undo self.game.base_rank = to_stack.cards[-1].rank self.game.saveStateMove(1 | 16) # for redo self.game.leaveState(old_state)
def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): if to_stack in self.game.s.rows and not to_stack.cards: return OpenStack.moveMove(self, ncards, to_stack, frames, shadow) return Giza_Reserve.moveMove(self, ncards, to_stack, frames, shadow)
def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): if to_stack in self.game.s.rows and not to_stack.cards: return OpenStack.moveMove(self, ncards, to_stack, frames, shadow) return Giza_Reserve.moveMove(self, ncards, to_stack, frames, shadow)