Skip to content

Commit

Permalink
Option to play Four Rivers without gravity.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Aug 16, 2023
1 parent be47aee commit 867029e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,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, 909))),
('dev', tuple(range(906, 909)) + tuple(range(11017, 11020))),
)

# deprecated - the correct way is to or a GI.GT_XXX flag
Expand Down
26 changes: 26 additions & 0 deletions pysollib/games/mahjongg/shisensho.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,26 @@ class FourRivers_24x12(AbstractShisenGame):
NCARDS = 288


class FourRivers_14x6_NoGravity(AbstractShisenGame):
RowStack_Class = FourRivers_RowStack
L = (14, 6)
NCARDS = 84
GRAVITY = False


class FourRivers_18x8_NoGravity(AbstractShisenGame):
RowStack_Class = FourRivers_RowStack
L = (18, 8)
GRAVITY = False


class FourRivers_24x12_NoGravity(AbstractShisenGame):
RowStack_Class = FourRivers_RowStack
L = (24, 12)
NCARDS = 288
GRAVITY = False


# ************************************************************************
# * register a Shisen-Sho type game
# ************************************************************************
Expand Down Expand Up @@ -559,5 +579,11 @@ def r(id, gameclass, name, rules_filename="shisensho.html"):
r(11014, FourRivers_14x6, "Four Rivers 14x6", "fourrivers.html")
r(11015, FourRivers_18x8, "Four Rivers 18x8", "fourrivers.html")
r(11016, FourRivers_24x12, "Four Rivers 24x12", "fourrivers.html")
r(11017, FourRivers_14x6_NoGravity, "Four Rivers (No Gravity) 14x6",
"fourrivers.html")
r(11018, FourRivers_18x8_NoGravity, "Four Rivers (No Gravity) 18x8",
"fourrivers.html")
r(11019, FourRivers_24x12_NoGravity, "Four Rivers (No Gravity) 24x12",
"fourrivers.html")

del r

0 comments on commit 867029e

Please sign in to comment.