Package-level declarations

Types

Link copied to clipboard
@Serializable(with = FuroSerializer::class)
value class Furo
Link copied to clipboard
object FuroSerializer : KSerializer<Furo>
Link copied to clipboard
Link copied to clipboard
@Serializable(with = MentsuSerializer::class)
value class Mentsu

面子

Link copied to clipboard
Link copied to clipboard
@Serializable(with = TatsuSerializer::class)
value class Tatsu

搭子

Link copied to clipboard
Link copied to clipboard
@Serializable(with = TileSerializer::class)
value class Tile : Comparable<Tile>

麻将牌

Link copied to clipboard

麻将牌的种类(万、筒、索、字)

Link copied to clipboard
enum Wind : Enum<Wind>

风(东、南、西、北)

Properties

Link copied to clipboard

是否为三元牌

Link copied to clipboard

是否为风牌

Link copied to clipboard

是否为幺九牌

Functions

Link copied to clipboard
fun Ankan(tile: Tile): Furo
Link copied to clipboard
fun Chi(tile: Tile): Furo
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Furo(text: String, ankan: Boolean = false): Furo
fun Furo(tiles: List<Tile>, ankan: Boolean = false): Furo
Link copied to clipboard
fun Kan(tile: Tile): Furo
Link copied to clipboard
fun Kanchan(tile: Tile): Tatsu
Link copied to clipboard
fun Kotsu(tile: Tile): Mentsu
Link copied to clipboard
fun Mentsu(text: String): Mentsu
fun Mentsu(tiles: List<Tile>): Mentsu
Link copied to clipboard
fun Penchan(tile: Tile): Tatsu
Link copied to clipboard
fun Pon(tile: Tile): Furo
Link copied to clipboard
fun Ryanmen(tile: Tile): Tatsu
Link copied to clipboard
fun Shuntsu(tile: Tile): Mentsu
Link copied to clipboard
fun Tatsu(text: String): Tatsu
fun Tatsu(first: Tile, second: Tile): Tatsu
Link copied to clipboard
fun Toitsu(tile: Tile): Tatsu
Link copied to clipboard
fun Iterable<Tile>.toTilesString(lowercase: Boolean = true): String

将牌序列转换为牌文本