
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Kajongg - the classical Mah Jongg for four players. If you are looking for the Mah Jongg solitaire please use the application KMahjongg.
Installing Kajongg on Windows
Download the installer from the link in the Files tab.
Kajongg needs the Microsoft Visual C++ Redistributable Package.
I believe I am not allowed to include a copy in the installer.
Chances are good that you already have this installed. Otherwise
you should see a corresponding error message. You can get that
package from Microsoft here: http://www.microsoft.com/en-us/download/details.aspx?id=29
Support for Windows is very new, there might be a few things missing. Still to be done:
Installing Kajongg on Linux
More
Kajongg is covered by the GNU GPL2 license - see COPYING.
Kajongg can be used in two different ways: Scoring a manual
game where you play as always and use Kajongg for the computation
of scores and for bookkeeping. Or you can use Kajongg to play
against any combination of other human players or computer players.
Kajongg currently comes with two rulesets for classical chinese, one
for rules in Germany and one for rules in England.
You can change many things in the rulesets at your will.
The rules for a game are saved in the database, so every
game could be played with different rules. Changing a ruleset
does not affect existing games.
You can always get the current source code from here:
git clone git://anongit.kde.org/kajongg
or see online here: https://projects.kde.org/projects/kde/kdegames/kajongg/repository
Please also visit http://kde.org/applications/games/kajongg/
If you want to send me bug reports, please either use the kajongg
menu commmand Help / Report Bug or mail me directly to the Mail
Address given in that bug reporting dialog. I will not follow links
to pages I do not trust like upload pages, shortlink services or
similar.
7 years ago
Version 4.13 runs on Windows.
7 years ago
Version 4.13 runs on Windows.
DarkSunlight
5 years ago
Report
wrohdewald
5 years ago
Report
Berlioz
9 years ago
Short version:
1. Game crashed after unavoidable risky discard.
2. Didn't get doubling for matching flower&season (as west with zero point hand, got 56 points, should have been 112).
3. Game skipped discarding on 1st game of 2nd round (south), I played as east and ended up with 14/15 stones.
I stopped here, because this was unplayable. :-(
Report
Berlioz
9 years ago
Short version:
1. Game crashed after unavoidable risky discard.
2. Didn't get doubling for matching flower&season (as west with zero point hand, got 56 points, should have been 112).
3. Game skipped discarding on 1st game of 2nd round (south), I played as east and ended up with 14/15 stones.
I stopped here, because this was unplayable. :-(
Report
wrohdewald
9 years ago
Or you can send a E-Mail to the developer (myself), see Help/About Kajongg.
That game crash has probably been fixed:
https://bugs.kde.org/show_bug.cgi?id=267849
but it was a little too late for KDE 4.7.1
If you experience it again, please tell me
more details.
about your missing double in the zero point hand: That is a bug in the corresponding rule. You can fix that locally by copying the default ruleset and by fixing the rule in the copy. In the ruleset editor, go to the hand rules,find the rule about own flower and own season and edit the field "Definion": replace "m" by "[mMx]".
this bug will be fixed in KDE 4.7.2
I wonder how you got 15 tiles. This should not be possible. I have a suspicion - maybe it is a graphical artifact. I fixed something there two weeks ago - could you please open a bug report for this one too and also try what happens with that tile when you resize the window? Also, did you check if the tile which was not discarded was really missing in the discard area, or was it visible once too much?
Report
Berlioz
9 years ago
About the third bug, I doubt it was a graphical error, I began as east wind and couldn't click anything in my first turn. Instead the game proceeded with the south wind player, so I ended up with 15 tiles after the next draw. Everything else was fine. I'll try the bug report thing. Maybe I can even reproduce the situation.
Report
Franklin
10 years ago
Do you have any forum or wiki to explain this game? The flow and the scoring rule are somewhat strange to me, I'd like to understand how it calculating scores.
Also, any document to explain the definition of each rule? I mean, something like "^(([wW])([eswn])){3,4}.*[mM]\3", "^([SBC][2-8])(\1\1)\b". It looks like a sendmail rule, you know.
Finally, I'm a C programmer, but this game may give me more motivation to learn python :p
Thanks!
Report
wrohdewald
10 years ago
I am away for vacation and answering is a little inconvenient - but I am sure the help manual for kajongg should help you. Please use the latest version from svn.
The help manual also explains how rules are defined. Mostly those are regular expressions.
Wolfgang
Report
DrTor
11 years ago
svn don't work ?
alex@Home64:~$ svn co svn://anonsvn.kde.org/home/kde/trunk/playground/games/kajongg
svn: URL 'svn://anonsvn.kde.org/home/kde/trunk/playground/games/kajongg' doesn't exist
Report
wrohdewald
11 years ago
svn co svn://anonsvn.kde.org/home/kde/trunk/kdereview/kajongg
but in the next few days it will move again - I do not yet know where.
Report
DrTor
11 years ago
Where is kajongg.po now ?
Report
wrohdewald
11 years ago
Report
fdv1
10 years ago
C:\TEMP\pythonTests>svn co http://anonsvn.kde.org/home/kde/trunk/l10n-kde4/*/*/kdereview
svn: Repository moved temporarily to 'http://false/?setCookie=1&contUrl=http%3a%2f%2fanonsvn.kde.org%2fhome%2fkde%2ftrunk%2fl10n-kde4%2f*%2f*%2fkdereview'; plea
se relocate
Report
wrohdewald
10 years ago
I already updated the link in the description:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegames/kajongg
svn cat svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/XX/messages/kdegames/kajongg.po > kajongg.po
where XX is the wanted language
the latest version supports voices - the manual tells you where to record what and then other players can hear your discards and claims.
Report
Mamonetti
11 years ago
In this kind of game by default I can think about 2 modes: host a game (human, bots, whatever..) and join a game.
But let's think about a third one. Imagine a situation where you are at home and you want to play with your friends a game (with real tiles, in a table.. you know). Scoring might not be much simple, and here is where the scoring mode comes in.
Common steps:
- You start the game (in the computer you must set player layout and names).
- Once each hand is finished you indicate all the important info, including at least:
* Draw hand or there is a winner.
* Win by tsumo, or ron (who pays).
* Tile set for the winning hand (including open melds).
* How many riichis have been declared.
* Set of doras.
- The game computes this data, and indicates how many points must be paid by anyone, renchan and so on, and updates the scoring and the status of the game.
Of course in classic mahjong there are other inputs at the end of each hand, nevermind.
In the end you have a tool to simplify the scoring in a true game, which imho doesn't seem to be very difficult to provide, but may be veeery helpful.
What do you think?
Regads
Report
wrohdewald
11 years ago
Scoring a manual game where you play as always and use Kajongg for the computation of scores and for bookkeeping.
Play as always means with real people/tiles on a real table without computer. At the end you either calculate scores manually and enter them so Kajongg can make the payments between players and update a table with all results, or you tell Kajongg all it needs to know for computing the score.
Or did I misunderstand you?
The trick in implementing this was that I wanted to deduce as much as possible by the tiles each player has in her hand. So those rules that cannot apply to a hand are not even proposed, and if two rules exclude each other and you apply one of them, the other one's checkbox disappears from the screen.
Report
Mamonetti
11 years ago
Regards
Report
Quintasan1
11 years ago
^ pastebin service
Wait, that means my KDE is too... new?
Report
wrohdewald
11 years ago
This applies to all pastebins, uploads, shortlink services and similar. You never know when they delete the content again - and then those comments here are worthless.
Just in case you are using kubuntu karmic with 4.4 backport: They have a problem with the transition from v4.6 API to v4.7 API, it is incomplete. I had to downgrade python-qt4, python-qt4-sql, python-sip4 and pyqt4-dev-tools
Report
Quintasan1
11 years ago
Report
wrohdewald
11 years ago
The best start is probably talking to the KDE polish translation team:
http://l10n.kde.org/team-infos.php?teamcode=pl
Report
Mamonetti
11 years ago
A good site to check it is this:
http://tenhou.net/0/
You have a simple guide for joining tenhou.net here:
http://arcturus.su/tenhou/
In tenhou.net for example you can not close being on furiten. It shows down a notify, and winning for you is not allowed, but removing this check may be interesting, so you can win and then you will have to pay a penalty. This is an expected scenario in riichi mahjong.
I have merged into one document all the rulesets I've found, but rules seem to change between different areas, so it might be somehow wrong. Anyway that's a start (it's in spanish right now, but can be translated into english if necessary).
Regards and thx for your effort
Report
wrohdewald
11 years ago
- some more cleanups (there are a few known bugs)
- get it officially into KDE
- suspend / resume of games, also surviving a game server restart
- negotiate rules before starting a game:
the game server should show which ruleset is defined for a table and the client should show if we have an identical ruleset defined or show the differences
- implement dangerous game, robbing the kong
- make computer players much more intelligent
- implement calling hands
- start adding more rulesets, but first others from the Classical Chinese group
If you want to help out you are very welcome - maybe you want to help implementing support for Riichi? I actually believe most of Riichi can be implemented with the existing program just by defining a ruleset. If program support is missing, like different names for the scores, it should be easy to add that.
Report
Mamonetti
11 years ago
Anyway I can help by reorganizing and translating to english my rules document, somehow marking which are the most important differences between chinese mahjong and riichi mahjong. I think that might help you (the one who better knows kajonggg's main internals) to figure out which way should be followed if you want to add riichi support.
Is that right for you? I'll start ASAP, and we'll see how it ends.
Regads
Report
wrohdewald
11 years ago
A good english Riichi doc certainly would be a helpful start.
Report