Packages

Life is a lightweight package for Conway's Game of Life that takes in a set of live cells, returns the next generation, and maintains state in a GenServer.

Current section

Files

Jump to
life lib supervisor.ex
Raw

lib/supervisor.ex

defmodule Life.Supervisor do
use Supervisor
def start_link do
IO.puts("Starting the supervisor..")
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
Life.GameServer
]
Supervisor.init(children, strategy: :one_for_one)
end
end