From 0d444b407d4dd4e88a5483cc866c8eaf35dff068 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 9 Mar 2012 12:12:44 +0200 Subject: [PATCH] Implement Freecell with Two Reserves. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit implements Freecell with two reserves. It was written for Shlomi Fish’s convenience. --- pysollib/games/freecell.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pysollib/games/freecell.py b/pysollib/games/freecell.py index ce9791df..0b72de97 100644 --- a/pysollib/games/freecell.py +++ b/pysollib/games/freecell.py @@ -641,13 +641,17 @@ class Limpopo(Game): shallHighlightMatch = Game._shallHighlightMatch_AC - +class PairFcFreeCell(FreeCell): + def createGame(self): + FreeCell.createGame(self, reserves=2) # register the game registerGame(GameInfo(5, RelaxedFreeCell, "Relaxed FreeCell", GI.GT_FREECELL | GI.GT_RELAXED | GI.GT_OPEN, 1, 0, GI.SL_SKILL)) registerGame(GameInfo(8, FreeCell, "FreeCell", GI.GT_FREECELL | GI.GT_OPEN, 1, 0, GI.SL_SKILL)) +registerGame(GameInfo(1900, PairFcFreeCell, "FreeCell with Two Reserves", + GI.GT_FREECELL | GI.GT_OPEN, 1, 0, GI.SL_SKILL)) registerGame(GameInfo(46, ForeCell, "ForeCell", GI.GT_FREECELL | GI.GT_OPEN, 1, 0, GI.SL_MOSTLY_SKILL)) registerGame(GameInfo(77, Stalactites, "Stalactites",