From 938d7dbaa284568360d4b9683a10a995b434f950 Mon Sep 17 00:00:00 2001 From: Leah Alpert Date: Fri, 26 Aug 2011 19:24:30 -0700 Subject: Updated tetris_shape.py to new version --- tetris_shape.py | 5 ++--- 1 file 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): -- cgit v1.2.3