Possible Duplicate:
stop moving through wall in maze using Python
How can I do this using Python 3.1: use the current cell, check if there is a wall to the right, left, up, down etc.
This is my code for moving:
if event.keysym == 'Right':
print( 'moving to the right', c)
c.move(CELLSIZE,0)
I tried this code to stop moving but it doesn't work:
if event.keysym == 'Wall':
curcell.right = True