ritchie/elements/hand_group

Types

A group of 3 tiles within a player’s closed hand, a.k.a. Mentsu.

Can be either:

  • Koutsu: 3 of a kind (ignoring red); e.g. 222z, 055m
  • Shuntsu: 3 consecutive numerals (ignoring red); e.g. 789m, 406s

These are like Chii and Pon respectively, except concealed.

pub type HandGroup {
  Koutsu(tile.Tile)
  Shuntsu(tile.Tile)
}

Constructors

  • Koutsu(tile.Tile)

    Koutsu: 3 of a kind (ignoring red), e.g. 222z, 055m

  • Shuntsu(tile.Tile)

    Shuntsu: 3 consecutives (ignoring red), e.g. 789m, 406s The tile argument here is the minimum normal tile in the group.

Values

pub fn min_tile(hg: HandGroup) -> tile.Tile

Returns the minimum tile in the group.

✨ Search Document