Current section

Files

Jump to
islands_text_client lib islands text client guard.ex
Raw

lib/islands/text/client/guard.ex

defmodule Islands.Text.Client.Guard do
@moduledoc """
Defines a guard to start/join the _Game of Islands_.
"""
defguard valid_game_args(game_name, player_name, gender, options)
when is_binary(game_name) and is_binary(player_name) and
gender in [:f, :m] and is_list(options)
end