perudox v0.1.0 Perudox.Bet

This module materializes a bet. It always contains a count and a value. This module allows verifying that a bet is legal or stronger than another.

Summary

Types

bet_or_tuple()
bet_or_tuple ::
  Perudox.Bet.t |
  {non_neg_integer, non_neg_integer}
t()
t() :: %Perudox.Bet{count: integer, value: integer}

Functions

stronger?(mode, b1, b2)
stronger?(Perudox.Game.State.mode, bet_or_tuple, bet_or_tuple) ::
  :ok |
  {:error, atom}