View Source Perudex.GameServer (Perudex v0.7.0)

This module is a GenServer implementation to control the Perudo game state.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

@type callback_arg() :: any()
@type id() :: any()
@type player() :: %{id: any(), callback_mod: module(), callback_arg: any()}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

move(game_id, player_id, move)

View Source
@spec move(id(), Perudex.Game.player_id(), Perudex.Game.move()) :: any()