From 1e53a8784faa368904a1745497e3c7b0c3a74fb5 Mon Sep 17 00:00:00 2001 From: Pranesh Ulleri <37181637+RebelsterPi@users.noreply.github.com> Date: Sat, 13 Oct 2018 14:08:55 +0530 Subject: [PATCH 1/2] added two comments --- grid_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grid_game.py b/grid_game.py index 64dd3da..88943c8 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 From 1c6c5966280ad43f78405f3c02b9c9e61027c54b Mon Sep 17 00:00:00 2001 From: Pranesh Ulleri <37181637+RebelsterPi@users.noreply.github.com> Date: Sat, 13 Oct 2018 14:25:04 +0530 Subject: [PATCH 2/2] added one more --- grid_game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid_game.py b/grid_game.py index 88943c8..a7dd7b0 100644 --- a/grid_game.py +++ b/grid_game.py @@ -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 = "|{}"