Islands Client Input v0.1.1 Islands.Client.Input View Source
Prompts for and processes input in the Game of Islands.
Inspired by the course Elixir for Programmers by Dave Thomas.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: IO.chardata() | IO.nodata()
t() :: IO.chardata() | IO.nodata()
Link to this section Functions
Link to this function
accept_move(state, message \\ [])
View Source
accept_move(state, message \\ [])
View Source
accept_move(Islands.Client.State.t(), IO.ANSI.Plus.ansilist()) ::
Islands.Client.State.t() | no_return()
accept_move(Islands.Client.State.t(), IO.ANSI.Plus.ansilist()) :: Islands.Client.State.t() | no_return()
Link to this function
check_input(input, state)
View Source
check_input(input, state)
View Source
check_input(t(), Islands.Client.State.t()) ::
Islands.Client.State.t() | no_return()
check_input(t(), Islands.Client.State.t()) :: Islands.Client.State.t() | no_return()
Link to this function
get_input(prompt, state)
View Source
get_input(prompt, state)
View Source
get_input(IO.ANSI.Plus.ansilist(), Islands.Client.State.t()) :: t()
get_input(IO.ANSI.Plus.ansilist(), Islands.Client.State.t()) :: t()