diff --git a/html-src/rules/russiancell.html b/html-src/rules/russiancell.html new file mode 100644 index 000000000..c47612810 --- /dev/null +++ b/html-src/rules/russiancell.html @@ -0,0 +1,12 @@ +

Russian Cell

+

+Yukon type. 1 deck. No redeal. + +

Object

+

+Move all cards to the foundations. + +

Quick Description

+

+Just like Russian Solitaire, +but with two free cells. diff --git a/pysollib/gamedb.py b/pysollib/gamedb.py index 820ad2cf9..e8cb04c1d 100644 --- a/pysollib/gamedb.py +++ b/pysollib/gamedb.py @@ -604,7 +604,7 @@ def _callback(gi, gt=game_type): tuple(range(13168, 13170)) + tuple(range(18000, 18005)) + tuple(range(19000, 19012)) + tuple(range(22303, 22311)) + tuple(range(22353, 22361))), - ('dev', tuple(range(961, 964))), + ('dev', tuple(range(961, 965))), ) # deprecated - the correct way is to or a GI.GT_XXX flag diff --git a/pysollib/games/yukon.py b/pysollib/games/yukon.py index 75087260e..b90744571 100644 --- a/pysollib/games/yukon.py +++ b/pysollib/games/yukon.py @@ -774,6 +774,7 @@ def isGameWon(self): # ************************************************************************ # * Yukon Cells +# * Russian Cell # * Yukonic Plague # ************************************************************************ @@ -835,6 +836,12 @@ def createGame(self): l.defaultAll() +class RussianCell(YukonCells): + RowStack_Class = StackWrapper(Yukon_SS_RowStack, base_rank=KING) + + shallHighlightMatch = Game._shallHighlightMatch_SS + + class YukonicPlague(YukonCells): Reserve_Stack = OpenStack @@ -933,3 +940,5 @@ def startGame(self): GI.GT_YUKON, 4, 0, GI.SL_BALANCED)) registerGame(GameInfo(963, Sevastopol, "Sevastopol", GI.GT_SPIDER, 1, 0, GI.SL_BALANCED)) +registerGame(GameInfo(964, RussianCell, "Russian Cell", + GI.GT_YUKON, 1, 0, GI.SL_BALANCED))