From 0f26fa283c993e7f34ab0145fb72262dfb392743 Mon Sep 17 00:00:00 2001 From: Joe R Date: Sat, 13 Aug 2022 18:04:20 -0400 Subject: [PATCH] Fix for single card redeal causing a stuck trigger in Matrimony. --- pysollib/games/sultan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pysollib/games/sultan.py b/pysollib/games/sultan.py index 5d316ea4..7a37be21 100644 --- a/pysollib/games/sultan.py +++ b/pysollib/games/sultan.py @@ -544,6 +544,11 @@ class Matrimony(Game): self.s.foundations[7]], frames=0) self._startAndDealRow() + def getSnapshotHash(self): + # Takes the round into account - a single card redeal can result + # in an identical snapshot. + return Game.getSnapshotHash(self) + str(self.s.talon.round) + # ************************************************************************ # * Picture Patience