Skip to content

Commit

Permalink
Restored lost Mahjongg layouts (see issue #301).
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Nov 11, 2023
1 parent 19639b5 commit 3483bd1
Show file tree
Hide file tree
Showing 7 changed files with 568 additions and 558 deletions.
11 changes: 9 additions & 2 deletions pysollib/gamedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ def _callback(gi, gt=game_type):
297: 631, # Alternation/Alternations
526: 447, # Australian/Outback Patience
640: 566, # Hypotenuse/Brazilian Patience

# Lost Mahjongg Layouts
5025: 5600, 5032: 5601, 5043: 5602, 5046: 5603, 5051: 5604,
5061: 5605, 5062: 5606, 5066: 5607, 5085: 5608, 5093: 5609,
5101: 5610, 5213: 5611, 5214: 5612, 5238: 5613, 5244: 5614,
5501: 5615, 5502: 5616, 5503: 5617, 5504: 5618, 5505: 5619,
5802: 5620, 5804: 5621, 5902: 5622, 5903: 5623
}

# For games by compatibility, note that missing games may actually
Expand Down Expand Up @@ -581,8 +588,8 @@ def _callback(gi, gt=game_type):
('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) +
tuple(range(13160, 13163)) + (16682,)),
('dev', tuple(range(906, 929)) + tuple(range(11017, 11020)) +
tuple(range(18000, 18004)) + tuple(range(22303, 22311)) +
tuple(range(22353, 22361))),
tuple(range(5600, 5624)) + tuple(range(18000, 18004)) +
tuple(range(22303, 22311)) + tuple(range(22353, 22361))),
)

# deprecated - the correct way is to or a GI.GT_XXX flag
Expand Down
1 change: 1 addition & 0 deletions pysollib/games/mahjongg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
from . import mahjongg1 # noqa: F401
from . import mahjongg2 # noqa: F401
from . import mahjongg3 # noqa: F401
from . import mahjonggL # noqa: F401
from . import shisensho # noqa: F401
Loading

0 comments on commit 3483bd1

Please sign in to comment.