Riichi.Event (riichi v0.2.0)

Copy Markdown View Source

Definition of engine output types, which we call Events. They represent everything that can happen in the game.

Summary

Types

abort_kind()

@type abort_kind() ::
  :nine_terminal_draw
  | :four_riichi_draw
  | :four_kan_draw
  | :four_wind_draw
  | :triple_ron

t()

Functions

is_closed_meld_call(event)

(macro)

is_open_meld_call(event)

(macro)

personalize(event, target_actor)

@spec personalize(t(), Riichi.Actor.t()) :: t()