Islands Board v0.1.9 Islands.Board.Response View Source
Link to this section Summary
Link to this section Types
Link to this type
guess_check()
View Sourceguess_check() :: {:hit, Islands.Island.t()} | {:miss, Islands.Coord.t()}
Link to this type
t()
View Sourcet() :: {: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 Sourcecheck_guess(Islands.Board.t(), Islands.Coord.t()) :: guess_check()
Link to this function
format_response(guess_check, board)
View Sourceformat_response(guess_check(), Islands.Board.t()) :: t()