Example #1
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack is not self.game.s.foundations[0]:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         ReserveStack.moveMove(self,
                               ncards,
                               to_stack,
                               frames=frames,
                               shadow=shadow)
Example #2
0
    def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
        if type(to_stack) is Pegged_Foundation:
            return ReserveStack.moveMove(self, ncards, to_stack, frames=frames,
                                         shadow=shadow)

        other_stack = to_stack._getMiddleStack(self)
        old_state = self.game.enterState(self.game.S_FILL)
        f = self.game.s.foundations[0]
        self.game.moveMove(ncards, self, to_stack, frames=0)
        self.game.playSample("drop", priority=200)
        self.game.moveMove(ncards, other_stack, f, frames=-1, shadow=shadow)
        self.game.leaveState(old_state)
        self.fillStack()
        other_stack.fillStack()
Example #3
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack is not self.game.s.foundations[0]:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         ReserveStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)