diff --git a/grid_game.py b/grid_game.py index 64dd3da..a7dd7b0 100644 --- a/grid_game.py +++ b/grid_game.py @@ -13,7 +13,7 @@ def get_locations(): return random.sample(CELLS, 3) - +#fuction to move a player def move_player(player, move): x, y = player if move == "LEFT": @@ -26,7 +26,7 @@ def move_player(player, move): y += 1 return x, y - +#fuction to get the movement from the user def get_moves(player): moves = ["LEFT", "RIGHT", "UP", "DOWN"] x, y = player @@ -40,7 +40,7 @@ def get_moves(player): moves.remove("DOWN") return moves - +#draws the map def draw_map(player, monster, door): print(" _"*5) tile = "|{}"