Islands Text Client v0.1.5 Islands.TextClient View Source

Text client for the Islands game.

Inspired by the book Functional Web Development by Lance Halvorsen.
Also inspired by the course Elixir for Programmers by Dave Thomas.

Link to this section Summary

Functions

Lets player2 join a game

Lets player1 start a game

Link to this section Functions

Link to this function join(game_name, player_name) View Source

Lets player2 join a game.

Player 2 joins a game from his node:

  • Islands.TextClient.join("Eve", "Adam")

Lets player1 start a game.

App :islands_engine must run in node :islands@<hostname>

  • cd islands_engine
  • iex --sname islands -S mix
  • :observer.start()

Each client must run in a different node…

  • cd islands_text_client
  • iex --sname c[lient]<n> -S mix

Player 1 starts a game from her node:

  • Islands.TextClient.start("Eve")