From f614186a79397a71234a2c10af7d2ae3eda02ea0 Mon Sep 17 00:00:00 2001 From: Joe R Date: Sun, 4 Sep 2022 13:08:10 -0400 Subject: [PATCH] Fixed Le Grande Teton game to properly account for the number of ranks in a tarock deck. --- pysollib/games/ultra/tarock.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pysollib/games/ultra/tarock.py b/pysollib/games/ultra/tarock.py index 15a1d916..33a9f70d 100644 --- a/pysollib/games/ultra/tarock.py +++ b/pysollib/games/ultra/tarock.py @@ -23,7 +23,7 @@ from pysollib.gamedb import GI, GameInfo, registerGame from pysollib.games.special.tarock import AbstractTarockGame, Grasshopper -from pysollib.games.threepeaks import ThreePeaksNoScore +from pysollib.games.threepeaks import Golf_Waste, ThreePeaksNoScore from pysollib.layout import Layout from pysollib.mfxutil import kwdefault from pysollib.stack import \ @@ -264,7 +264,13 @@ class Rambling(Corkscrew): class LeGrandeTeton(ThreePeaksNoScore): - pass + Waste_Class = StackWrapper(Golf_Waste, mod=14) + + def shallHighlightMatch(self, stack1, card1, stack2, card2): + if stack1 == self.s.waste or stack2 == self.s.waste: + return ((card1.rank + 1) % 14 == card2.rank or + (card1.rank - 1) % 14 == card2.rank) + return False # ************************************************************************