From c5b941d95a940c5c939008ce124708cc5fb9f1f2 Mon Sep 17 00:00:00 2001 From: skomoroh Date: Sun, 28 May 2006 23:55:49 +0000 Subject: [PATCH] - corrected rules of Whitehead git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@2 39dd0a4e-7c14-0410-91b3-c4f2d318f732 --- pysollib/games/klondike.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pysollib/games/klondike.py b/pysollib/games/klondike.py index f24009e5..0c00c718 100644 --- a/pysollib/games/klondike.py +++ b/pysollib/games/klondike.py @@ -163,8 +163,12 @@ class ThumbAndPouch(Klondike): # // Whitehead # ************************************************************************/ +class Whitehead_RowStack(SS_RowStack): + def _isAcceptableSequence(self, cards): + return isSameColorSequence(cards, self.cap.mod, self.cap.dir) + class Whitehead(Klondike): - RowStack_Class = SC_RowStack + RowStack_Class = Whitehead_RowStack Hint_Class = CautiousDefaultHint def createGame(self):