Packages

Perudex is a library implementing the game Perudo, also known as Dudo or Liar's Dice (which you may have heard of in the Pirates of the Caribbean movie).

Current section

Files

Jump to
perudex lib perudex.ex
Raw

lib/perudex.ex

defmodule Perudex do
@moduledoc false
use Application
def start(_type, _args) do
children = [Perudex.GameRegistry.child_spec(), Perudex.Supervisors.MainSupervistor]
opts = [strategy: :one_for_one, name: Perudex.Supervisor]
Supervisor.start_link(children, opts)
end
def service_name(service_id), do: {:via, Registry, {Perudex.GameRegistry, service_id}}
end