Skip to content

Commit

Permalink
Add Russian Cell game
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Jun 29, 2024
1 parent 0cace3a commit 3cbcc8d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
12 changes: 12 additions & 0 deletions html-src/rules/russiancell.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1>Russian Cell</h1>
<p>
Yukon type. 1 deck. No redeal.

<h3>Object</h3>
<p>
Move all cards to the foundations.

<h3>Quick Description</h3>
<p>
Just like <a href="russiansolitaire.html">Russian Solitaire</a>,
but with two free cells.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions pysollib/games/yukon.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ def isGameWon(self):

# ************************************************************************
# * Yukon Cells
# * Russian Cell
# * Yukonic Plague
# ************************************************************************

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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))

0 comments on commit 3cbcc8d

Please sign in to comment.