All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.mahjongutils.shanten.FuroChanceShantenModels.kt Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy