Islands Engine

v0.2.0

  • Pages
  • Modules

    Islands Engine v0.2.0 Islands.Engine.Board.Response View Source

    Link to this section Summary

    Types

    t()

    Functions

    check_guess(guess, board)
    format_response(arg, board)

    Link to this section Types

    Link to this type

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

    Link to this section Functions

    Link to this function

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

    Link to this function

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

    Built using ExDoc (v0.19.2), designed by Friedel Ziegelmayer for the Elixir programming language.