Skip to content

Commit

Permalink
Added Thirty-Nine Steps game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Dec 20, 2023
1 parent f190b3d commit a961bca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions html-src/rules/thirtyninesteps.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1>Thirty-Nine Steps</h1>
<p>
Forty Thieves type. 2 decks. No redeal.

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

<h3>Quick Description</h3>
<p>
Like <a href="fortythieves.html">Forty Thieves</a>,
but with 13 piles of 3 cards each.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,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, 940)) + tuple(range(11017, 11020)) +
('dev', tuple(range(906, 941)) + tuple(range(11017, 11020)) +
tuple(range(5600, 5624)) + tuple(range(18000, 18005)) +
tuple(range(22303, 22311)) + tuple(range(22353, 22361))),
)
Expand Down
7 changes: 7 additions & 0 deletions pysollib/games/fortythieves.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def fillStack(self, stack):
# * Courtyard
# * Waning Moon
# * Lucas
# * Thirty-Nine Steps
# * Napoleon's Square
# * Napoleon's Shoulder
# * Carre Napoleon
Expand Down Expand Up @@ -195,6 +196,10 @@ class Lucas(WaningMoon):
ROW_MAX_MOVE = UNLIMITED_MOVES


class ThirtyNineSteps(WaningMoon):
DEAL = (0, 3)


class NapoleonsSquare(FortyThieves):
ROW_MAX_MOVE = UNLIMITED_MOVES

Expand Down Expand Up @@ -1588,3 +1593,5 @@ def inSuitSequence(self, card1, card2):
GI.GT_FORTY_THIEVES, 2, 0, GI.SL_BALANCED))
registerGame(GameInfo(933, Cascade, "Cascade",
GI.GT_FORTY_THIEVES, 1, 0, GI.SL_BALANCED))
registerGame(GameInfo(940, ThirtyNineSteps, "Thirty-Nine Steps",
GI.GT_FORTY_THIEVES, 2, 0, GI.SL_MOSTLY_SKILL))

0 comments on commit a961bca

Please sign in to comment.