perudox v0.1.0 Perudox.Game

This module is the GenServer interface around a Perudox.Player.State data structure.

Summary

Types

t()
t() :: pid

Functions

bet(game, player, bet)
bet(Perudox.Game.t, Perudox.Player.t, Perudox.Bet.t) ::
  :ok |
  {:error, atom}
dudo(game, player)
dudo(Perudox.Game.t, Perudox.Player.t) :: :ok | {:error, atom}
history(game)
join(game, player)
new()
new() :: Perudox.Game.t
players(game)
start(game)
start(Perudox.Game.t) :: :ok
start_link()
start_link() :: {:ok, Perudox.Game.t}
state(game)