Islands.Board.Response (Islands Board v0.1.18) View Source

Link to this section Summary

Link to this section Types

Specs

guess_check() :: {:hit, Islands.Island.t()} | {:miss, Islands.Coord.t()}

Specs

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

Link to this section Functions

Link to this function

check_guess(board, guess)

View Source

Specs

Link to this function

format_response(guess_check, board)

View Source

Specs

format_response(guess_check(), Islands.Board.t()) :: t()