Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 231 Bytes
"""
Game logic
"""
from constants import *
def allowed_position(m, position):
"""Returns True if pacman is allowed to be in the given position"""
x, y = position
object = m[x][y]
return object in ALLOWED_OBJECTS
Jump to Line
Something went wrong with that request. Please try again.