yatzy v1.0.0 Yatzy.Result View Source

Determine the results of a given game

Link to this section Summary

Functions

Returns a new result struct based on the provided list of players

Link to this section Types

Link to this type

result_status()

View Source
result_status() :: :finished | :aborted
Link to this type

result_type()

View Source
result_type() :: :win | :draw
Link to this type

t()

View Source
t() :: %Yatzy.Result{
  status: result_status(),
  type: result_type(),
  winners: [String.t()] | nil
}

Link to this section Functions

Returns a new result struct based on the provided list of players