Documentation ¶
Overview ¶
Index ¶
- Constants
- func CanHu(onHand mahjong.Indexes, discard int) bool
- func CanZimo(onHand mahjong.Indexes) bool
- func EnableDebug(enable bool)
- func Group(input []int) [][]int
- func IsLegal(onHand []int) bool
- func IsTing(onHand mahjong.Indexes) bool
- func IsWin(mj mahjong.Indexes) bool
- func IsWinWithIndexes(indexes mahjong.Indexes) bool
- func Shrink(in []int) ([]int, bool)
- func Stats(indexes ...mahjong.Indexes) *mahjong.Stats
- func TingTiles(onHand mahjong.Indexes) mahjong.Indexes
- type Base
- type Scorer
Constants ¶
View Source
const ( PingHu = iota PongPong // 碰碰胡:由4副刻子(或杠)、将牌组成的胡牌 QiDui // 七对: 7个对子组成的的胡牌 LongQiDui ShuangLongQiDui HaoHuaLongQiDui QYS // 清一色:由一种花色的牌组成的胡牌 HaiDiLao // 海底捞:抓棹面上最后一张牌的人正好能胡牌 GangShangHua // 杠上花: 杠来自己要胡的牌胡牌 )
Variables ¶
This section is empty.
Functions ¶
func EnableDebug ¶
func EnableDebug(enable bool)
func IsWinWithIndexes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.