commonMain.mahjongutils.shanten.FuroChanceShantenModels.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mahjong-utils Show documentation
Show all versions of mahjong-utils Show documentation
Mahjong Utils (for Japanese Riichi Mahjong)
The newest version!
package mahjongutils.shanten
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import mahjongutils.models.Tatsu
import mahjongutils.models.hand.Hand
import mahjongutils.models.hand.RegularHandPattern
/**
* 有副露机会的手牌的向听信息
*/
@Serializable
@SerialName("ShantenWithFuroChance")
data class ShantenWithFuroChance(
override val shantenNum: Int,
/**
* 是否能荣和机会牌
*/
val canRon: Boolean,
/**
* Pass后的向听信息
*/
val pass: ShantenWithoutGot?,
/**
* 每种搭子吃后的向听信息
*/
val chi: Map,
/**
* 碰后的向听信息(若无法碰则为null)
*/
val pon: ShantenWithGot?,
/**
* 明杠后的向听信息(若无法明杠则为null)
*/
val minkan: ShantenWithoutGot?
) : Shanten
@Serializable
@SerialName("FuroChanceShantenResult")
data class FuroChanceShantenResult(
override val hand: Hand,
override val shantenInfo: ShantenWithFuroChance
) : ShantenResult