toggle menu
mahjong-utils
0.7.7
common
switch theme
search in API
mahjong-utils
/
mahjongutils.shanten
/
CommonShantenArgs
Common
Shanten
Args
@
Serializable
data
class
CommonShantenArgs
(
val
tiles
:
List
<
Tile
>
,
val
furo
:
List
<
Furo
>
=
emptyList()
,
val
bestShantenOnly
:
Boolean
=
false
)
向听分析参数
Parameters
tiles
门前的牌
furo
副露(对向听分析本身无用,但若需要将结果用于和了分析则需要传入)
best
Shanten
Only
仅计算最优向听数的打法(不计算退向打法)
mode
向听分析模式
See also
Shanten
Mode
Members
Members & Extensions
Constructors
Common
Shanten
Args
Link copied to clipboard
constructor
(
tiles
:
List
<
Tile
>
,
furo
:
List
<
Furo
>
=
emptyList()
,
bestShantenOnly
:
Boolean
=
false
)
Properties
best
Shanten
Only
Link copied to clipboard
val
bestShantenOnly
:
Boolean
=
false
furo
Link copied to clipboard
val
furo
:
List
<
Furo
>
tiles
Link copied to clipboard
val
tiles
:
List
<
Tile
>
Functions
throw
On
Validation
Error
Link copied to clipboard
fun
CommonShantenArgs
.
throwOnValidationError
(
)
validate
Link copied to clipboard
fun
CommonShantenArgs
.
validate
(
)
:
Collection
<
CommonShantenArgsErrorInfo
>