コード例 #1
0
ファイル: montecarlo.py プロジェクト: joeraz/PySolFC
 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)
コード例 #2
0
ファイル: montecarlo.py プロジェクト: jimsize/PySolFC
 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)
コード例 #3
0
ファイル: montecarlo.py プロジェクト: joeraz/PySolFC
 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)
コード例 #4
0
ファイル: montecarlo.py プロジェクト: jimsize/PySolFC
 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)