📄 xmj.man
字号:
.PPThe following doubles apply to the winning hand only:.TPNo score hand: four chows and a non-scoring pair.1 double. (M 117(a))(Note: like M, we allow any of the extra points (Fishing the Eyes,etc) to go with this double. Some rules say that the extra pointsinvalidate this hand. Possibly there should be an option for this.).TPNo chows:1 double. (M 117(b)).TPConcealed hand:1 double (M 117(c)), changeable with the \fBConcealedFully\fP gameoption. (Note: this means a hand that is fully concealed after goingout. Another common value for this is 3 doubles, in which case 1double is usually given for a semi-concealed hand (see below).)(Note: if the KongHas3Types game option is set, a claimed kong countsas concealed for this hand; see the note above under "Kongs".).PPThe following doubles normally apply to the winning hand only;however, the \fBLosersPurity\fP game option can be set to allowlosing hands to score them (this is a highly deprecated Americanfeature, but has been requested by a user)..TPSemi-concealed hand:no doubles, changeable with the \fBConcealedAlmost\fP gameoption. (Not in M)(Note: this means a winning hand that is concealed up to the point ofgoing out, or, if enabled, a concealed losing hand. According to adiscussion on rec.games.mahjong, a winning semi-concealed hand isclassically awarded one double (with three given for fully concealed).One book in my possession (U.S.A., early 1920s) awards this doubleonly to a hand that is concealed except for the pair.)(Note: if the KongHas3Types game option is set, a claimed kong countsas concealed for this hand; see the note above under "Kongs".).TPOne suit with honours:1 double. (M 117(d)).TPOne suit only:3 doubles. (M 117(e)).TPAll majors:1 double. (M 117(f)).TPAll honours (in an unlimited game):2 doubles. (M 117(g)) (Note: such a hand will also score the double for all majors.).TPAll terminals (in an unlimited game):2 doubles. (Not in M)(Note: such a hand will also score the double for all majors.).PPThe following doubles apply only to the winning hand:.TPWinning with loose tile:1 double. (M 117(h))(Note: with the default settings, replacements for bonus tiles come fromthe live wall. Hence this double applies only to winning after Kong.).TPWinning from the bottom of the sea (winning with last tile),1 double. (M 117(i)).TPCatching a fish from the bottom of the sea (winning with last discard),1 double. (M 117(j)).TPRobbing a kong,1 double. (M 117(k)).TPCompleting Original Call,1 double. (M 117(l)).PPLimit (M 118-120): the limit is 1000 by default, and can be changed by the \fBScoreLimit\fP game option. The \fBNoLimit\fP game option can be used to play a game "with the roof off".The following hands are limit hands:.TPHeaven's Blessing: East wins with dealt hand. (M 122(a)).TPEarth's Blessing: player wins with East's first discard. (M 122(b)).TPGathering Plum Blossom from the Roof: winning with 5 Circles from theloose wall. (M 122(c)).TPCatching the Moon from the Bottom of the Sea: winning with 1 Circle as the last tile. (M 122(d))(Note: M says that the tile must be drawn. It seems more reasonablealso to allow it to be the last discard, which is what wedo. Objections?).TPScratching a Carrying Pole: robbing a kong of 2 Bamboos. (M 122(e)).TP(Note: these last three limits are rather arbitrary, but of thearbitrary limits they are apparently the most common. There should beoptions to disable them.).TPKong upon Kong: making a Kong, making another Kong with the loosetile, and with the second loose tile obtaining Mah Jong. (Also, ofcourse, with three or four successive kongs.) (M 122(f)).TPFour Kongs. (M 122(g)).TPBuried Treasure: all concealed and no chows. (M 122(h)).TPThe Three Great Scholars: three sets of dragons and no chows. (M 122(i))(Note: in most rules I have seen, there is no restriction to a no chow hand. Since in M's rules, three sets and a chow scores at least(10 (M has 10 for Mah Jong) + 12 (at least 3 pungs))times 8 (2 for each set of dragons) times 4 (for Big Three Dragons)= 704, this is significant with the default limit. For us, with 20 forgoing out, Big Three Dragons is over the default limit anyway.).TPFour Blessings o'er the Door: four sets of winds and a pair. (M 122(j)).TPAll Honours. (M 122(k)).TPHeads and Tails: all terminals. (M 122(l)).TPImperial Jade: contains only Green Dragon and 2,3,4,6,8 Bamboo. (M 122(m))(Note: another rather arbitrary hand, but widely adopted.).TPNine Gates: calling on 1-1-1-2-3-4-5-6-7-8-9-9-9 of one suit. (M 122(n))..TPWriggling Snake: 1-1-1-2-3-4-5-6-7-8-9-9-9 plus 2, 5 or 8 of one suit (M 122(o)).(Note: another rather arbitrary hand.).TPConcealed Clear Suit: one suit only and all concealed. (M 122(p)).TPThirteen Unique Wonders: one of each major tile, and a match to any of them. (M 122(q)).TPEast's 13th consecutive Mah-Jong. (M 122(r)).PPGeneral note: there are many other doubles and limits kickingaround. I welcome opinions on which should be possible options; andalso on which of the above I should eject from the default set.I dislike Imperial Jade, Wriggling Snake, and the ones depending on aspecific tile (Gathering Plum Blossom, Catching the Moon, Scratching a Carrying Pole): which of these are so commonly adopted that theyshould be in even a fairly minimalist default set?.SH GAME OPTIONSThis section describes the options that can be set in thegame. Whether an option can be used, depends on the version of theprograms. This is described by a "protocol version number"; this isnot strictly speaking a version just of the communication protocol,but a version number reflecting the combination of protocol andprograms. When playing by oneself, this does not matter, but in thecase of a networked game, players might have different versions of the software, in which case the game is played according to the lowestversion of any player.Game options can be controlled in two ways: the \fB--option-file\fPargument to the \fBmj-server\fP program gives options to be applied to the game, or options can be set by the players, using the interfacedescribed in the manual section for \fBxmj\fP.In the user interface, the options are referred to by a one linedescription, but each option also has a short name, given here.Options are of several types:.TP.B boolboolean, or on/off, options..TP.B intinteger options.TP.B natnon-negative integer options.TP.B stringis a miscellaneous type, whose values are strings of at most 127characters which must not contain white space.TP.B scoreis the type used for options that give the score of some combinationor feature in a hand. A score is either a limit (or a half-limit; theunderlying protocol supports percentages of limits, but the currentuser programs only support limits and half limits); or a number ofdoubles to be awarded; or a number of points to be added. It ispossible (though never needed) to have both points and doubles. Ifpoints/doubles are specified as well as a limit, they will be used ina no-limit game. (The server implements a hard limit of 100000000on all scores to avoid arithmetic overflow, but that's unlikely toworry anybody.).SS Currently supported optionsThe following options are implemented in the versions of the programwith which this document is distributed. If playing against peoplewith older versions of the software, some options may not beavailable. The list gives for each option the short name, type, andshort description, followed by a detailed explanation..GO Timeout nat "time limit for claims"This is the time in seconds allowed to claim a discard, or to rob akong. If set to zero, there is no timeout. The default is 15 seconds..GO TimeoutGrace nat "grace period when clients handle timeouts"This period (in seconds) is added to the Timeout above before theserver actually forces a timeout. This is for when clients handletimeouts locally, and allows for network lags. If this option is zero,clients are not permitted to handle timeouts locally. The currentserver also only allows players to handle timeouts locally if all ofthem wish to do so..GO ScoreLimit nat "limit on hand score"This is the limit for the score of a hand. In a no-limit game, it isthe notional value of a "limit" hand. The default is 1000..GO NoLimit bool "no-limit game"If this option is set, the game has no limit on hand scores. Thedefault is unset..GO MahJongScore score "base score for going out"This is the number of points for obtaining Mah-Jong. The default is 20..GO SevenPairs bool "seven pairs hand allowed"If this option is set, then Mah-Jong hands of seven pairs (any sevenpairs) are allowed. The default is unset..GO SevenPairsVal score "score for a seven pair hand"This gives the score (in addition to the base Mah-Jong score) for aseven pairs hand. The default is 20..GO Flowers bool "play using flowers and seasons"If this option is set, the deal includes four flowers and four seasons in the Chinese Classical style. If unset, only the 136 standard tilesare used. The default is set..GO FlowersLoose bool "flowers replaced by loose tiles"If playing with flowers, this option determines whether flowers andseasons are replaced from the live wall (unset), or by loose tiles(set). The default is unset..GO FlowersOwnEach score "score for each own flower or season"This option gives the score for having one's own flower or season.If one has both, this score will be given twice. The default is noscore..GO FlowersOwnBoth score "score for own flower and own season"This is the score for having both one's own flower and one's ownseason. Note that this is awarded in addition to twice the previousscore. The default is 1 double..GO FlowersBouquet score "score for all four flowers or all four seasons"This is the score for having all four flowers or all four seasons.The default is 1 double..GO DeadWall bool "there is a dead wall"This determines whether there is a dead wall, so that play ends whenit is reached (set), or whether all tiles may be drawn (unset).The default is set..GO DeadWall16 bool "dead wall is 16 tiles, unreplenished"If this option is set, then the dead wall initially has 16 tiles,and does not have any more tiles added to it (this is the set-updescribed by Millington). If the option is unset, then the dead wallinitially has 14 tiles, and after two loose tiles have been taken,two tiles are moved from the live wall to the dead wall (this is theset-up described by almost everyone else). The default is unset inversions 1.1 onwards, and set previously. (To be precise, the protocol level default is set, but all servers from 1.1 onwards will changethis to unset.).GO ConcealedFully score "score for fully concealed hand"This is the score for a winning hand with no open sets.The default is 1 double..GO ConcealedAlmost score "score for almost concealed hand"This is the score for a hand that is concealed up to the point ofgoing out.The default is no additional score..GO LosersPurity bool "losing hands score doubles for pure, concealed etc."If this option is set, losing hands will score various doubles for onesuit, almost concealed, etc. See the rules for details. This option isan (Anglo-)Americanism alien to Chinese Classical (see Foster for aspirited but faulty argument in its favour, and Millington for the rejoinder).The default is unset..GO KongHas3Types bool "claimed kongs count as concealed for doubling"If this option is set, claimed kongs count as concealed for variousdoubling combinations, although they score as exposed for basicpoints. See the note above under "Kongs".The default is unset..GO LosersSettle bool "losers pay each other"If this option is set, the losers pay each other the differencebetween their scores. If it unset, they pay only the winner.The default is set..GO EastDoubles bool "east pays and receives double"If this option is set, payments to and from East Wind are doubled,as in the Chinese Classical game.The default is set..GO DiscDoubles bool "the discarder pays double"If this option is set, the settlement procedure is changed to a stylecommon in Singapore. That is, if the winning player wins off adiscard, the discarder pays double the hand value, and the otherplayers pay the hand value. If the winner wins from the wall, then allother players pay double the hand value.The default is unset.Note: EastDoubles and DiscDoubles can be set together, but nobodyplays such a rule..SS Option file formatBoth in the option file and in the \fB.xmjrc\fP file, options arerecorded in the format used by the server protocol. This is a line ofthe form\fBGameOption 0\fP \fIname type minprot enabled value desc\fPThe meanings of the elements are:.TP.B GameOption 0identifies this as a game option line (the 0 is an irrelevant fieldfrom the protocol)..TP.I nameis the name of the option..TP.I typeis the type of the option..TP.I minprotis the minimum protocol version with which the option can be used(which is not necessarily the version at which it was introduced)..TP.I enabledwill always be 1..TP.I valueis the value: a decimal (signed) integer for \fBnat\fP and \fBint\fP;0 or 1 for \fBbool\fP; the string for \fBstring\fP; and for\fBscore\fP, if the score is \fIc\fP centi-limits, \fId\fP doubles and \fIp\fP points, the value is \fIc\fP*1000000 + \fId\fP*10000 + \fIp\fP..TP.I descis a short description of the option, which is not required but isusually copied in from the server.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -