Mahjong-O-Matic
for "Chinese Official International Rules"

 
   = 193 points

[Identify Hand] [Call Game] [Configure] [Query]

[About] [Instructions] [Rules] [Guestbook] [Privacy]

Rules and Regulations

Note: Conversations with many people during the OEMC have given new insights in the background of scoring. It has also given insight into the spirit of the game which has turned out to be quite different than what I expected. At the moment I am writing a digest on these issues and working on a new version of the scoring system.

Note: During development of the system I have based the logic on the English translation of the OC ruling. It has become clear that the translation is incomplete, especially concerning the exclusion ruling. I am now in the process of reconstruction the system logic. I apologize for any incorrect generated scoring that may occur in the meantime.

Some links that I am currently examining:

FAQ #22. Chinese Official Scoring Explained
http://www.sloperama.com/mjfaq/mjfaq22.htm
CMCR: Article 10 Principles vs. Exclusionary Rule
http://www.imahjong.com/maiarchives208.html

Downloads

Downloadable digests of Official Chinese Mahjong rules have been made available by Mahjong News:

Download the Digest by Takeshobo/the Mahjong Museum (English version) as PDF file
Download the Digest by Takeshobo/the Mahjong Museum (Japanese version) as PDF file
Download the Rules and Regulations of the Dutch Mahjong Association (Dutch version) as PDF file

Score Naming

The scoring names used by the Mahjong-O-Matic are taken from the english translation of the official internation rulebook. Some scoring elements (such as "pung dragon") may appear more than once in a hand. When present, the name starts with the number of occurences. Examples: "One Pung Dragon" and "Two Pure Double Chow".

Some original scoring names will confuse the system because their description are ambigious. For this reason some names needed to be slightly adapted. The following table shows the changes:

Hand
Number
Original Name Mahjong-O-Matic Name

#4 "Two Terminal Chows" "Pair Terminal Chows"
#5 "Pung of Terminals or Honors"

"Pung Wind" or "Pung Dragon"

#38 "Mixed Shifted Pungs"

"Three Mixed Shifted Pungs"

#60 "Pure Shifted Pungs" "Three Pure Shifted Pungs "


Scoring Trivia

It is not always clear what is being ment by certain words and phrases. Real people have the ability to listen to intuition and the rely on context and for a software based systems this is much more critical. Certain issues were encountered during development which were not so straight forward as first expected or which have been subject to public discussions.

Implications

Implications form the basis of the Chinese Official ruleset as illustrated by the expression "If the score is implied, it doesn't count". The definition of implied used by the Mahjong-O-Matic is: "If a set of tiles receive a score, then if all possible variations of tiles for that score would also receive another score, then the second is implied". This can be rephrased as: "If you can show that there is a variation of tiles that does not imply a second score, then the first score never implies the second".

Confused? Here is an example:

Take as example "All Honors", a hand that consists of 4 sets of winds and dragons. There are 4 different winds and three different dragons. There is a combination of sets that form "All Honors" which does not contain dragons, so "All Honors" does not imply "pung dragon". Whereas every "All Honors" will contain at least one "pung wind", so "All Honors" implies "Pung wind".

A second example:

Every possible variation of "#59 Pure Triple Chow" will have a "#1 Pure Double Chow", so "Pure Triple Chow" implies "Pure Double Chow". However, the fourth set of tiles can be such that when combined with one of the others it forms a second "Pure Triple Chow". There are a total of two "Pure Triple Chow", one is implied and does not receive points, the other get points.

One Voided Suit

The definition of "One Voided Suit" is slightly unclear in the English translation of the rules. The Mahjong-O-Matic considers that each absent suit should receive a point for "Voided Suit". So one could have "No/One/Two/Three Voided Suit". You will never see "Two Voided Suit" as it is implied by "Half/Full Flush" and "Three Voided Suit" as that is implied by "All Honors".

"#36 Reversible Tiles" is always "One/Two Voided Suit", so that is why they do not combine.

Waits

A player is "waiting" when a winning hand is one tile short from completion. If only one kind of tile can be used to finish the hand it is called "Unique Wait" otherwise it is a "Multiple Wait". For certain unique waits an extra point can be obtained for "Edge/Closed/Single Wait".

A "Single Wait" is not an unique wait, a better name would have been "Head Wait". This is why no points are gained for a unique wait to complete a "#45 Knitted Straight". [Note: Not to be confused with the Lesser/Greater Honors and Knitted Tiles]


Annotations

At the moment I am focusing my attention on getting the system fully operational. However I do have some personal annotations with regard to the rules which reflects some choices taken. The text and formatting is a mess.

Pungs and Kongs

Pungs:

2 concealed pung is implied by 3 concealed pung
3 concealed pung is implied by 4 concealed pung

2 concealed pung is implied by 2 concealed kong
3 concealed pung are not implied by 3 or 4 kong
4 concealed pung are not implied by 4 kong

Kongs:

1 concealed kong is implied by 2 concealed kong
1 claimed kong is implied by 2 claimed kong
2 kong (claimed and/or concealed) is implied by 3 kong
3 kong is implied by 4 kong

The number of concealed pungs may increase if concealed kongs are also present:

1 concealed kong+2 concealed pung may count as 3 concealed pung
1 concealed kong+3 concealed pung may count as 4 concealed pung
2 concealed kong+1 concealed pung may count as 3 concealed pung
2 concealed kong+2 concealed pung may count as 4 concealed pung
3 concealed kong may count as 3 concealed pung
3 concealed kong+1 concealed pung may count as 4 concealed pung
4 concealed kong may count as 4 concealed pung.

Basic Implications

- Textually implied such as "#65 Three Kong" and "#79 Four Kong"
- Cascadable such as "1*#1 One Pure Double Chow" and "2*#1 Two Pure Double Chow" [same score number]
- Promotable such as "#14 One Pung Dragon" and "#34 Two Pung Dragon"

Detailed description of hands (under construction)

#1 One Pure Double Chow 1 pt
  Two Pure Double Chow 2 pts
 
Implies:  
Notes: You get 1 point for EACH "Pure Double Chow"
 
 
#2 One Mixed Double Chow 1 pt
  Two Mixed Double Chow 2 pts
 
Implies:  
Notes: You get 1 point for EACH "Mixed Double Chow"
 
 
#3 One Short Straight 1 pt
  Two Short Straight 2 pts
 
Implies:  
Notes: You get 1 point for EACH "Short Straight "
 
 
#4 One Pair Terminal Chow 1 pt
  Two Pair Terminal Chow 2 pts
 
Implies:  
Notes:

You get 1 point for EACH "Pair Terminal Chow"

The name used in OC is "Two Terminal Chows" but the prefix 'Two" seriously confuses the system because having two would result in something like "Two Two Terminal Chow".

 
 
#5 One Terminal Pung/Kong 1 pt
  Two Terminal Pung/Kong 2 pts
  Three Terminal Pung/Kong 3 pts
  Four Terminal Pung/Kong 4 pts
  One Wind Pung/Kong 1 pt
  Two Wind Pung/Kong 2 pts
 
Implies:  
Notes:

You get 1 point for EACH "Terminal/Wind"
Although dragons are honors too, thay have their seperate scoring (#14 #34 #71 #76)
Terminals and Winds needed to be split to simply the internal mechanism of the system.

 
 
#6 One Melded Kong 1 pt
 
Implies:  
Notes:  
 
#7 One Voided Suit 1 pt
 
Implies:  
Notes:

You get 1 point for EACH "Voided Suit" (it does not mean "Two of the Three Suits")

"Two Voided suit" is always implied by Half/Full Flush.
"Three Voided Suit" is always implied by All Honors.

 
 
#8 No Honors 1 pt
 
Implies:  
Notes:  
 
#9 Edge Wait 1 pt
 
Implies:  
Notes: Only valid if this wait is an unique wait.
 
 
#10 Closed Wait 1 pt
 
Implies:  
Notes: Only valid if this wait is an unique wait.
 
 
#11 Single Wait 1 pt
 
Implies:  
Notes:

Only valid if this wait is an unique wait.
Technically specaking this is a Head-Wait.

 
 
#12 Self Drawn 1 pt
 
Implies:  
Notes:  
 
#13 Flower Tiles 2 pts
 
Implies:  
Notes: The system does not generate this scoring element
 
 
#14 One Dragon Pung/Kong 2 pts
 
Implies:  
Notes:  
 
#15 Prevalent Wind 2 pts
 
Implies:  
Notes:  
 
#16 Seat Wind 2 pts
 
Implies:  
Notes:  
 
#17 Concealed Hand 2 pts
 
Implies:  
Notes:  
 
#18 All Chows 2 pts
 
Implies:  
Notes:  
 
#19 One Tile Hog 2 pts
  Two Tile Hog 4 pts
  Three Tile Hog 6 pts
 
Implies:  
Notes: You get 2 points for EACH "Tile Hog"
Four Tile Hogs does not exist because that would require 16 tiles.
 
 
#20 One Double Pung/Kong 2 pts
  Two Double Pung/Kong 4 pts
 
Implies:  
Notes:  
 
#21 Two Concealed Pungs 2 pts
 
Implies:  
Notes:  
 
#22 One Concealed Kong 2 pts
 
Implies:  
Notes:  
 
#23 All Simples 2 pts
 
Implies:  
Notes:  
 
#24 Outside Hand 4 pts
 
Implies:  
Notes:  
 
#25 Fully Concealed Hand 4 pts
 
Implies:  
Notes: "#25 Fully Concealed Hand" implies "#17 Concealed Hand" and "#12 Selfpick"
 
 
#26 Two Melded Kongs 4 pts
 
Implies:  
Notes:  
 
#27 Last Tile 4 pts
 
Notes: The system does not generate this scoring element because it does not keep track of discarded tiles
 
 
#28 All Pungs 6 pts
 
Implies:  
Notes:  
 
#29 Half Flush 6 pts
 
Implies:  
Notes:  
 
#30 Mixed Shifted Chows 6 pts
 
Implies:  
Notes:  
 
#31 All Types 6 pts
 
Implies:  
Notes:  
 
#32 Melded Hand 6 pts
 
Implies:  
Notes: With a single-wait, the system may sometimes give an "Implied by #32" text but actually means "Does not combine with melded hand".
 
 
#33 Two Concealed Kong 6 pts
 
Implies:  
Notes:  
 
#34 Two Dragon Pung/Kong 6 pts
 
Implies:  
Notes:  
 
#35 Mixed Straight 8 pts
 
Implies:  
Notes:  
 
#36 Reversible Tiles 8 pts
 
Implies:  
Notes: "#36 Reversibles". You have either a "One Void" or a "Two Void" hand. "One voided" is therefor implied.
 
 
#37 Mixed Triple Chow 8 pts
 
Implies:  
Notes: Every variation of tiles will also contain ONE "#2 Mixed Double Chow".
A Second Mixed Double Chow is optional [spanning the #37 and the fourth set], so numerically not implied.
The system will not give you points for the 'spanning' Mixed Double Chow.
 
 
#38 Three Mixed Shifted Pungs 8 pts
 
Implies:  
Notes: The name used in OC is "Mixed Shifted Pungs". The Three was added to make the system consistent with "#60 Three Pure Shifted Pungs".
 
 
#39 Chicken Hand 8 pts
 
Implies:  
Notes: This usually consists of 3 suits, a honor head, mixed chow/pungs, no terminals, no kongs, one claimed set, win on discard, multiple waits.
 
 
#40 Last Tile Draw 8 pts
 
Implies:  
Notes: The system does not generate this scoring element because it does not keep track of discarded tiles
 
 
#41 Last Tile Claim 8 pts
 
Notes: The system does not generate this scoring element because it does not keep track of discarded tiles
 
 
#42 Out With A Replacement Tile 8 pts
 
Notes: The system does not generate this scoring element because it does not keep track of discarded tiles
 
 
#43 Robbing The Kong 8 pts
 
Notes: The system does not generate this scoring element because it does not keep track of discarded tiles
 
 
#44 Lesser Honors and Knitted Tiles 12 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.
 
 
#45 Knitted Straight 12 pts
 
Implies:  
Notes: The straight is always concealed. If the winning tile is part of the straight it may be a discard from another player.
 
 
#46 Upper Four 12 pts
 
Implies:  
Notes:  
 
#47 Lower Four 12 pts
 
Implies:  
Notes:  
 
#48 Big Three Winds 12 pts
 
Implies:  
Notes:  
 
#49 Pure Straight 16 pts
 
Implies:  
Notes: Every variation of tiles will also contain ONE "#3 Short Straight".
A Second Short Straight is optional [spanning the #49 and the fourth set], so numerically not implied.
Martin told me that this was not allowed.
The system will not give you points for the 'spanning' Short Straight.
 
 
#50 Three Suited Terminal Chows 16 pts
 
Implies:  
Notes:  
 
#51 Pure Shifted Chows 16 pts
 
Implies:  
Notes:  
 
#52 All Fives 16 pts
 
Implies:  
Notes:  
 
#53 Triple Pung 16 pts
 
Implies:  
Notes:  
 
#54 Three Concealed Pungs 16 pts
 
Implies:  
Notes:  
 
#55 Seven Pairs 24 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.
 
 
#56 Greater Honors and Knitted Tiles 24 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.
 
 
#57 All Even 24 pts
 
Implies:  
Notes:  
 
#58 Full Flush 24 pts
 
Implies:  
Notes:  
 
#59 Pure Triple Chow 24 pts
 
Implies:  
Notes: Every variation of tiles will also contain ONE "#1 Pure Double Chow".
A Second Double chow is optional [spanning the #59 and the fourth set], so numerically not implied.
Martin and Marianne ensured me that this was allowed.
The system will give you points for the 'spanning' double chow.
 
 
#60 Three Pure Shifted Pungs 24 pts
 
Implies:  
Notes: The name used in OC is "Pure Shifted Pungs". The Three was added so that the system would not confuse it with "#68 Four Pure Shifted Pungs".
 
 
#61 Upper Tiles 24 pts
 
Implies:  
Notes:  
 
#62 Middle Tiles 24 pts
 
Implies:  
Notes:  
 
#63 Lower Tiles 24 pts
 
Implies:  
Notes:  
 
#64 Four Shifted Chows 32 pts
 
Implies:  
Notes: "#64 Four Shifted Chows" implies "#18 All Chows"
 
 
#65 Three Kongs 32 pts
 
Implies:  
Notes:  
 
#66 All Terminals And Honors 32 pts
 
Implies:  
Notes: "#66 All Terminals and Honors" imply "#5 Pung Terminal" and "#5 Pung Wind" [#15 and #16 are different]
However, the following may combine [not mentioned in rules].
"#14 One Dragon"
"#34 Two Dragon"
[It would seem that Dragons are 'super' honors]
 
 
#67 Quadruple Chow 48 pts
 
Implies:  
Notes: "#67 Quadruple Chow" implies "#18 All Chows"
 
 
#68 Four Pure Shifted Pungs 48 pts
 
Implies:  
Notes:  
 
#69 All Terminals 64 pts
 
Implies:  
Notes: #69 All terminals implies "1*#20 One Double Pung" and doesn't combine with "2*#20 Two Double Pung"

Every variation of tiles will also contain ONE "#20 Double pung".
A Second Double pung is optional, so numerically not implied.
Due to the "identical category of combinations" rule the second may not count.
The system will flag the second as "Does not combine"
 
 
#70 Little Four Winds 64 pts
 
Implies:  
Notes:  
 
#71 Little Three Dragons 64 pts
 
Implies:  
Notes:  
 
#72 All Honors 64 pts
 
Implies:  
Notes: "#72 All Terminals and Honors" imply "#5 Pung Wind" [#15 and #16 are different]
However, the following may combine [mentioned literally in rules].
"#14 One Dragon"
"#34 Two Dragon"
[It would seem again that Dragons are 'super' honors]
 
 
#73 Four Concealed Pungs 64 pts
 
Implies:  
Notes: The "Hands that are by their very nature concealed hands, should not (and do not) earn points for being concealed (fully or otherwise)". So it does not combine with "#17 Concealed Hand" and "#25 Fully concealed Hand".
 
 
#74 Pure Terminal Chows 64 pts
 
Implies:  
Notes:  
 
#75 Big Four Winds 88 pts
 
Implies:  
Notes: If you feel confused you may feed the system with "#70 Little Four Winds" which will be accepted for lower points. The system will not take "A hand of three winds and a head of the fourth" literally.
 
 
#76 Big Three Dragons 88 pts
 
Implies:  
Notes: If you feel confused you may feed the system with "#71 Little Three Dragons" which will be accepted for lower points. The system will not take "A hand of two dragons and a head of the remaining" literally.
 
 
#77 All Green 88 pts
 
Implies:  
Notes:  
 
#78 Nine Gates 88 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.
 
 
#79 Four Kongs 88 pts
 
Implies:  
Notes:  
 
#80 Seven Shifted Pairs 88 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.
 
 
#81 Thirteen Orphans 88 pts
 
Notes: The current version of the system does not generate this scoring element.
The next version will.