20 lines
421 B
Elixir
20 lines
421 B
Elixir
defmodule Cartographer do
|
|
alias Cartographer.Board
|
|
|
|
defdelegate new_board(height, width, wrap), to: Board
|
|
|
|
defdelegate height(board), to: Board
|
|
|
|
defdelegate width(board), to: Board
|
|
|
|
defdelegate get(board), to: Board
|
|
|
|
defdelegate get(board, x, y), to: Board
|
|
|
|
defdelegate get(board, x, y, range), to: Board
|
|
|
|
defdelegate set(board, x, y, data), to: Board
|
|
|
|
defdelegate neighbors(board, x, y), to: Board
|
|
end
|