aboutsummaryrefslogtreecommitdiff
path: root/tetris_shape.py
diff options
context:
space:
mode:
Diffstat (limited to 'tetris_shape.py')
-rw-r--r--tetris_shape.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tetris_shape.py b/tetris_shape.py
index e81a0af..040cfb2 100644
--- a/tetris_shape.py
+++ b/tetris_shape.py
@@ -1,7 +1,6 @@
LEFT = "left"
-RIGHT = "right"
-DOWN = "down"
-direction_d = { "left": (-1, 0), "right": (1, 0), "down": (0, 1) }
+(LEFT, RIGHT, UP, DOWN) = range(4)
+direction_d = { LEFT: (-1, 0), RIGHT: (1, 0), DOWN: (0, 1) }
class Block(object):
def __init__( self, (x, y), color):