toggle menu
mahjong-utils
0.7.0
common
switch theme
mahjong-utils
mahjongutils
Calc
Context
Error
Info
Validation
Exception
mahjongutils.
hanhu
Child
Point
Companion
get
Child
Point
By
Han
Hu()
get
Parent
Point
By
Han
Hu()
Han
Hu
Options
Companion
Parent
Point
Companion
Point
mahjongutils.
hora
Chitoi
Hora
Hand
Pattern
Hora
hora()
Hora
Args
Companion
Hora
Args
Error
Info
both
Tiles
And
Shanten
Result
Are
Null
tiles
Is
Empty
too
Many
Furo
any
Tile
More
Than4
tiles
Num
Illegal
agari
Not
In
Tiles
shanten
Not
With
Got
shanten
Not
Hora
Hora
Args
Validation
Exception
Hora
Hand
Pattern
Companion
Hora
Info
Hora
Options
Companion
Kokushi
Hora
Hand
Pattern
Regular
Hora
Hand
Pattern
Companion
throw
On
Validation
Error()
validate()
mahjongutils.
hora.
helpers
calc
Han()
mahjongutils.
models
Chi
count
As
Code
Array()
count
As
Map()
Furo
Companion
Furo()
is
Sangen
is
Wind
is
Yaochu
Kan
Kanchan
Kotsu
Mentsu
Companion
Mentsu()
Penchan
Pon
Ryanmen
Shuntsu
Tatsu
Companion
Tatsu()
Tile
Companion
Tile
Type
Companion
M
P
S
Z
Toitsu
to
Tiles
String()
Wind
East
South
West
North
mahjongutils.
models.
hand
Chitoi
Hand
Pattern
Common
Hand
Pattern
Hand
Hand
Pattern
IChitoi
Hand
Pattern
IHas
Furo
IKokushi
Hand
Pattern
IRegular
Hand
Pattern
Kokushi
Hand
Pattern
Regular
Hand
Pattern
mahjongutils.
shanten
as
With
Got
as
Without
Got
chitoi
Shanten()
Chitoi
Shanten
Result
Common
Shanten
Common
Shanten
Args
Common
Shanten
Args
Error
Info
tiles
Is
Empty
too
Many
Furo
too
Many
Tiles
any
Tile
More
Than4
tiles
Num
Illegal
Common
Shanten
Args
Validation
Exception
Common
Shanten
Result
furo
Chance
Shanten()
Furo
Chance
Shanten
Args
Furo
Chance
Shanten
Args
Error
Info
tiles
Is
Empty
too
Many
Tiles
any
Tile
More
Than4
tiles
Num
Illegal
Furo
Chance
Shanten
Args
Validation
Exception
Furo
Chance
Shanten
Result
Improvement
kokushi
Shanten()
Kokushi
Shanten
Result
regular
Shanten()
Regular
Shanten
Result
Shanten
shanten()
Shanten
Result
Shanten
With
Furo
Chance
Shanten
With
Got
Shanten
Without
Got
throw
On
Validation
Error()
Union
Shanten
Result
validate()
mahjongutils.
yaku
Default
Yaku
Serializer
Yaku
Yakus
Default
Yaku
Serializer
mahjong-utils
/
mahjongutils.hora
/
ChitoiHoraHandPattern
Chitoi
Hora
Hand
Pattern
@
Serializable
@
SerialName
(
value
=
"ChitoiHoraHandPattern"
)
data
class
ChitoiHoraHandPattern
(
val
pairs
:
Set
<
Tile
>
,
val
agari
:
Tile
,
val
tsumo
:
Boolean
,
val
selfWind
:
Wind
?
=
null
,
val
roundWind
:
Wind
?
=
null
)
:
HoraHandPattern
,
IChitoiHandPattern
七对子的和牌手牌
Members
Constructors
Chitoi
Hora
Hand
Pattern
Link copied to clipboard
constructor
(
pairs
:
Set
<
Tile
>
,
agari
:
Tile
,
tsumo
:
Boolean
,
selfWind
:
Wind
?
=
null
,
roundWind
:
Wind
?
=
null
)
Properties
agari
Link copied to clipboard
open
override
val
agari
:
Tile
和牌张
furo
Link copied to clipboard
abstract
val
furo
:
List
<
Furo
>
副露
menzen
Link copied to clipboard
open
val
menzen
:
Boolean
是否门清
pairs
Link copied to clipboard
open
override
val
pairs
:
Set
<
Tile
>
手牌形
remaining
Link copied to clipboard
open
override
val
remaining
:
List
<
Tile
>
浮牌
round
Wind
Link copied to clipboard
@
EncodeDefault
open
override
val
roundWind
:
Wind
?
=
null
场风
self
Wind
Link copied to clipboard
@
EncodeDefault
open
override
val
selfWind
:
Wind
?
=
null
自风
tiles
Link copied to clipboard
abstract
val
tiles
:
List
<
Tile
>
手牌(包括门前与副露)
tsumo
Link copied to clipboard
open
override
val
tsumo
:
Boolean
是否自摸