1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Some minor refactoring of Hit or Miss.

This commit is contained in:
Joe R 2021-10-01 20:15:52 -04:00
parent 900ba03979
commit daaf3410ec

View file

@ -67,7 +67,7 @@ class HitOrMiss_Talon(WasteTalonStack):
game.rank = 0
game.saveStateMove(1 | 16) # for redo
game.leaveState(old_state)
return super(HitOrMiss_Talon, self).dealCards(sound)
return WasteTalonStack.dealCards(self, sound)
def getHelp(self):
return _('Talon. Unlimited redeals, until running through the deck '
@ -83,12 +83,12 @@ class HitOrMiss_Waste(WasteStack):
game.deadDeals = 0
game.saveStateMove(1 | 16) # for redo
game.leaveState(old_state)
super(HitOrMiss_Waste, self).moveMove(ncards, to_stack, frames, shadow)
WasteStack.moveMove(ncards, to_stack, frames, shadow)
game.s.talon.dealCards()
# ************************************************************************
# * HitOrMiss
# * Hit Or Miss
# ************************************************************************
class HitOrMiss(Game):