aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Leah Alpert <lalpert@mit.edu>2011-08-26 19:24:30 -0700
committerGravatar Leah Alpert <lalpert@mit.edu>2011-08-26 19:24:30 -0700
commit938d7dbaa284568360d4b9683a10a995b434f950 (patch)
tree0d030ef13077a8fb2e1f68d205d1becf18b077af
parent239338305364e076f4a23de0e869acb38e767b2e (diff)
Updated tetris_shape.py to new version
-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):