From dd675e30b58332e977d519ed888381c105e21ab2 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sun, 15 Apr 2018 17:51:54 +0300 Subject: [PATCH] Add the Freecell w Zero Reserves preset. It is useful to me, and the wizard-based games do not support the solver well. --- pysollib/games/freecell.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pysollib/games/freecell.py b/pysollib/games/freecell.py index d858e678..a251c379 100644 --- a/pysollib/games/freecell.py +++ b/pysollib/games/freecell.py @@ -644,12 +644,19 @@ class PairFcFreeCell(FreeCell): FreeCell.createGame(self, reserves=2) +class ZeroFcFreeCell(FreeCell): + def createGame(self): + FreeCell.createGame(self, reserves=0) + + # 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(1901, ZeroFcFreeCell, "FreeCell with Zero Reserves", + 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",