Skip to content

Commit

Permalink
Add Relaxed Cruel game
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Feb 27, 2025
1 parent f799093 commit 81150b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions html-src/rules/relaxedcruel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1>Relaxed Cruel</h1>
<p>
Baker's Dozen type. 1 deck. Unlimited redeals.

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

<h3>Quick Description</h3>
<p>
Just like <a href="cruel.html">Cruel</a>,
but the number of cards you can move as a sequence is not restricted.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def _callback(gi, gt=game_type):
tuple(range(19000, 19012)) + tuple(range(22303, 22311)) +
tuple(range(22353, 22361))),
('fc-3.1', tuple(range(961, 971))),
('dev', tuple(range(971, 977)) + tuple(range(18005, 18007)) +
('dev', tuple(range(971, 978)) + tuple(range(18005, 18007)) +
(44, 526,)),
)

Expand Down
8 changes: 8 additions & 0 deletions pysollib/games/bakersdozen.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def startGame(self):

# ************************************************************************
# * Cruel
# * Relaxed Cruel
# * Unusual
# ************************************************************************

Expand Down Expand Up @@ -310,6 +311,10 @@ def startGame(self):
shallHighlightMatch = Game._shallHighlightMatch_SS


class RelaxedCruel(Cruel):
RowStack_Class = StackWrapper(SS_RowStack, base_rank=NO_RANK)


class Unusual(Cruel):

def createGame(self):
Expand Down Expand Up @@ -453,3 +458,6 @@ def startGame(self):
GI.SL_MOSTLY_SKILL))
registerGame(GameInfo(907, Martha, "Stewart",
GI.GT_BAKERS_DOZEN, 1, 0, GI.SL_BALANCED))
registerGame(GameInfo(977, RelaxedCruel, "Relaxed Cruel",
GI.GT_BAKERS_DOZEN | GI.GT_OPEN | GI.GT_RELAXED, 1, -1,
GI.SL_BALANCED))

0 comments on commit 81150b4

Please sign in to comment.