Beispiel #1
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     assert ncards == 1 and to_stack in self.game.s.rows
     if to_stack.cards:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         BasicRowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)
Beispiel #2
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     assert ncards == 1 and to_stack in self.game.s.rows
     if to_stack.cards:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         BasicRowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)
Beispiel #3
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     assert ncards == 1
     if self.cards[-1].rank == KING:
         assert to_stack in self.game.s.foundations
         BasicRowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)
     else:
         MonteCarlo_RowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)
Beispiel #4
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     assert ncards == 1
     if self.cards[-1].rank == KING:
         assert to_stack in self.game.s.foundations
         BasicRowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)
     else:
         MonteCarlo_RowStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)