Put the Pieces Together
Find out how all the code we've written so far behaves in the Elixir console.
We'll cover the following...
New IEx session
Now that we have all the pieces assembled, let’s see how they all work together in IEx.
We start by aliasing the Game
and GameSupervisor
modules:
alias IslandsEngine.{Game, GameSupervisor}
Now we can use the GameSupervisor.start_game/1
function to start a new game:
{:ok, game} =
...