Islands Board v0.1.1 Islands.Board.Response View Source

Link to this section Summary

Link to this section Types

Link to this type

t() View Source
t() ::
  {:hit | :miss, Islands.Island.type() | :none, :no_win | :win,
   Islands.Board.t()}

Link to this section Functions

Link to this function

check_guess(guess, board) View Source
check_guess(Islands.Coord.t(), Islands.Board.t()) ::
  {:hit, Islands.Island.t()} | {:miss, Islands.Coord.t()}

Link to this function

format_response(arg, board) View Source
format_response(
  {:hit, Islands.Island.t()} | {:miss, Islands.Coord.t()},
  Islands.Board.t()
) :: t()