This commit is contained in:
Gavin McDonald
2018-11-11 11:27:25 -05:00
commit 5e537d6895
9 changed files with 191 additions and 0 deletions

19
lib/cartographer.ex Normal file
View File

@@ -0,0 +1,19 @@
defmodule Cartographer do
alias Cartographer.Board
defdelegate new_board(height, width), 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