本文整理匯總了Python中pysollib.stack.AC_RowStack.moveMove方法的典型用法代碼示例。如果您正苦於以下問題:Python AC_RowStack.moveMove方法的具體用法?Python AC_RowStack.moveMove怎麽用?Python AC_RowStack.moveMove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pysollib.stack.AC_RowStack
的用法示例。
在下文中一共展示了AC_RowStack.moveMove方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: moveMove
# 需要導入模塊: from pysollib.stack import AC_RowStack [as 別名]
# 或者: from pysollib.stack.AC_RowStack import moveMove [as 別名]
def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
state = self.game.getState()
if state > 0:
AC_RowStack.moveMove(
self, ncards, to_stack, frames=frames, shadow=shadow)
return
assert to_stack in self.game.s.foundations
assert ncards == 1
assert not self.game.s.waste.cards
self.game.moveMove(
ncards, self, to_stack, frames=frames, shadow=shadow)
for s in self.game.s.foundations:
s.cap.base_rank = to_stack.cards[0].rank
freerows = [s for s in self.game.s.rows if not s.cards]
self.game.s.talon.dealRow(rows=freerows, sound=True)
self.game.s.talon.dealCards() # deal first card to WasteStack