Riichi.Round (riichi v0.2.0)

Copy Markdown View Source

Summary

Types

round_id()

@type round_id() :: non_neg_integer()

wind()

@type wind() :: :east | :south | :west | :north

Functions

current_dealer(round_id, player_count)

@spec current_dealer(round_id(), non_neg_integer()) :: Riichi.Actor.t()

round_wind(round_id, player_count)

@spec round_wind(round_id(), non_neg_integer()) :: wind()

seat_wind(round_id, actor, player_count)

@spec seat_wind(round_id(), Riichi.Actor.t(), non_neg_integer()) :: wind()

wind_of_int(i)

@spec wind_of_int(non_neg_integer()) :: wind()