summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.erl')
-rw-r--r--src/tile.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tile.erl b/src/tile.erl
new file mode 100644
index 0000000..2e9f562
--- /dev/null
+++ b/src/tile.erl
@@ -0,0 +1,12 @@
+-module(tile).
+-export
+(
+ [
+ get_cost/1,
+ cost_when_oob/0
+ ]
+).
+cost_when_oob () -> 255.
+
+get_cost(N) when (N =< 200) -> N;
+get_cost(_N) -> cost_when_oob().