Skip to content

Commit

Permalink
Added Dnieper game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Sep 18, 2023
1 parent 3649bbb commit 187bae2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions html-src/rules/dnieper.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<h1>Dnieper</h1>
<p>
Spider type. 1 deck. No redeal.

<h3>Object</h3>
<p>
Group all the cards in sets of 13 cards in descending sequence
by suit from King to Ace and move such sets to the foundations.

<h3>Quick Description</h3>
<p>
Like <a href="kiev.html">Kiev</a>, but sequences in the tableau
can turn the corner, so kings can be played on aces.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def _callback(gi, gt=game_type):
('fc-2.20', tuple(range(855, 897))),
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
tuple(range(13160, 13163)) + (16682,)),
('dev', tuple(range(906, 919)) + tuple(range(11017, 11020)) +
('dev', tuple(range(906, 920)) + tuple(range(11017, 11020)) +
tuple(range(22303, 22311)) + tuple(range(22353, 22361))),
)

Expand Down
8 changes: 8 additions & 0 deletions pysollib/games/yukon.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ def startGame(self):
# * Russian Spider
# * Double Russian Spider
# * Kiev
# * Dnieper
# ************************************************************************

class RussianSpider_RowStack(Yukon_SS_RowStack): # Spider_SS_RowStack
Expand Down Expand Up @@ -582,6 +583,7 @@ def startGame(self):


class Kiev(RussianSpider):
RowStack_Class = RussianSpider_RowStack
Layout_Method = staticmethod(Layout.klondikeLayout)
Talon_Class = DealRowTalonStack

Expand All @@ -594,6 +596,10 @@ def startGame(self):
self._startAndDealRow()


class Dnieper(Kiev):
RowStack_Class = StackWrapper(RussianSpider_RowStack, mod=13)


# ************************************************************************
# * Brisbane
# ************************************************************************
Expand Down Expand Up @@ -829,3 +835,5 @@ def startGame(self):
altnames=('Kyiv',)))
registerGame(GameInfo(914, Canberra, "Canberra",
GI.GT_YUKON, 1, 1, GI.SL_BALANCED))
registerGame(GameInfo(919, Dnieper, "Dnieper",
GI.GT_SPIDER, 1, 0, GI.SL_BALANCED))

0 comments on commit 187bae2

Please sign in to comment.