Bug 254918 - Support 16-tiles game
Summary: Support 16-tiles game
Status: RESOLVED FIXED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 02:27 UTC by Franklin Weng
Modified: 2025-02-11 21:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 25.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2010-10-22 02:27:16 UTC
Version:           unspecified
OS:                Linux

Now Kajongg plays 13-tiles mahjongg game.  In some area like Taiwan, we play 16-tiles game.  I hope that Kajongg can also support 16-tiles game too.

Reproducible: Didn't try
Comment 1 Sovxx 2015-06-05 10:04:50 UTC
Hi,
Agree, 16 tiles would be nice !
I have learned mahjong in Taiwan and created a KDE account just to +1 this request ;)

Good game !
Comment 2 Wolfgang Rohdewald 2025-02-10 22:12:42 UTC
I implemented basic support but somebody else will have to define the specific rules. Right now it is a subset of Classical Chinese with 16 tiles.

You can implement them in predefined.py and in rulecode.py - if you need help, just ask
Comment 3 Wolfgang Rohdewald 2025-02-10 22:12:56 UTC
Git commit 1a7d9a87fe1a1ced03c9043717dcb88b07d37292 by Wolfgang Rohdewald.
Committed on 10/02/2025 at 22:11.
Pushed by wrohdewald into branch 'master'.

Very first alpha for Taiwanese 16-tile game.

Somebody else will have to define correct rules, see also bug report
Related: bug 25, bug 04

M  +1    -1    src/hand.py
M  +1    -1    src/handboard.py
M  +67   -5    src/predefined.py
M  +1    -0    src/rule.py
M  +29   -1    src/rulecode.py
M  +2    -2    src/servertable.py

https://invent.kde.org/games/kajongg/-/commit/1a7d9a87fe1a1ced03c9043717dcb88b07d37292
Comment 4 Sovxx 2025-02-11 19:33:22 UTC
Hi,

Great news, thanks !
I have tried to install the latest master on Linux Mint, but I gave up :)
I will wait for the official release.

Thanks again !
Comment 5 Wolfgang Rohdewald 2025-02-11 21:29:00 UTC
This should work for most distros:

For kajongg master, install from software manager:

git
Python3-pip
Python3-qtpy
python3-pyqt6
python3-pyqt6.qtsvg
Python3-twisted
Kdegames-mahjongg-data-kf5

(instead of pyqt6, pyside6 would also do)

Then open a terminal window and enter

git clone https://github.com/KDE/kajongg.git
cd kajongg/src
./kajongg.py