Package-level declarations

Types

Link copied to clipboard
@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

七对子的和牌手牌

Link copied to clipboard
@Serializable
data class Hora : HoraInfo

和牌分析结果

Link copied to clipboard
@Serializable
data class HoraArgs

和牌分析参数

Link copied to clipboard
@Serializable
sealed interface HoraHandPattern : HoraInfo, HandPattern

和牌手牌

Link copied to clipboard
interface HoraInfo

和牌信息

Link copied to clipboard
@Serializable
data class HoraOptions(val aotenjou: Boolean, val allowKuitan: Boolean, val hasRenpuuJyantouHu: Boolean, val hasKiriageMangan: Boolean, val hasKazoeYakuman: Boolean, val hasMultipleYakuman: Boolean, val hasComplexYakuman: Boolean)

和牌分析选项

Link copied to clipboard
@Serializable
@SerialName(value = "KokushiHoraHandPattern")
data class KokushiHoraHandPattern(val repeated: Tile, val agari: Tile, val tsumo: Boolean, val selfWind: Wind? = null, val roundWind: Wind? = null) : HoraHandPattern, IKokushiHandPattern

国士无双的和牌手牌

Link copied to clipboard
@Serializable
@SerialName(value = "RegularHoraHandPattern")
data class RegularHoraHandPattern : HoraHandPattern, IRegularHandPattern

标准形的和牌手牌

Functions

Link copied to clipboard
fun hora(args: HoraArgs): Hora

fun hora(shantenResult: CommonShantenResult<*>, agari: Tile, tsumo: Boolean, dora: Int = DEFAULT_DORA, selfWind: Wind? = DEFAULT_SELF_WIND, roundWind: Wind? = DEFAULT_ROUND_WIND, extraYaku: Set<Yaku> = DEFAULT_EXTRA_YAKU, options: HoraOptions = DEFAULT_OPTIONS): Hora
fun hora(tiles: List<Tile>, furo: List<Furo> = DEFAULT_FURO, agari: Tile, tsumo: Boolean, dora: Int = DEFAULT_DORA, selfWind: Wind? = DEFAULT_SELF_WIND, roundWind: Wind? = DEFAULT_ROUND_WIND, extraYaku: Set<Yaku> = DEFAULT_EXTRA_YAKU, options: HoraOptions = DEFAULT_OPTIONS): Hora

和牌分析

Link copied to clipboard
Link copied to clipboard