forking from https://gitea.daggertrout.com/mcdoh/ExMineArchive
This commit is contained in:
19
lib/cartographer.ex
Normal file
19
lib/cartographer.ex
Normal 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
|
||||
Reference in New Issue
Block a user