summaryrefslogtreecommitdiff
path: root/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'common.py')
-rw-r--r--common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.py b/common.py
index 7ccf8e9..50b8eb0 100644
--- a/common.py
+++ b/common.py
@@ -1,5 +1,12 @@
import os
+directions = {
+ 'U': (0, -1),
+ 'D': (0, 1),
+ 'L': (-1, 0),
+ 'R': (1, 0),
+}
+
class Squares(object):
EMPTY = '.'
APPLE = '*'