ritchie/elements/meld/daiminkan
“Big Open Kan” formed by calling 1 with 3 of the same kind in the closed hand.
Similar to Pon, may be called from any other player’s discard.
Types
Daiminkan meld. Takes:
own: The calling player’s 3 own tiles.called: The called tile.dir: (discarding_player - self) mod 4
pub type Daiminkan {
Daiminkan(
own: List(tile.Tile),
called: tile.Tile,
dir: player.Player,
)
}
Constructors
-
Daiminkan( own: List(tile.Tile), called: tile.Tile, dir: player.Player, )
Values
pub fn consume_from_hand(
dmk: Daiminkan,
hand: tile_set37.TileSet37,
) -> tile_set37.TileSet37
Removes all own tiles from the hand.
pub fn from_hand_dir(
hand: tile_set37.TileSet37,
called: tile.Tile,
dir: player.Player,
) -> option.Option(Daiminkan)
Constructs Daiminkan from the closed hand for the called tile, and the relative position of the discarding player.
pub fn from_tiles_dir(
own: List(tile.Tile),
called: tile.Tile,
dir: player.Player,
) -> option.Option(Daiminkan)
Constructs Daiminkan from own tiles, the called tile, and the relative position of the discarding player.