From f564ebbac23a35504007fdbf55449a6fac1063bd Mon Sep 17 00:00:00 2001 From: Fred Z Date: Thu, 12 Apr 2018 18:39:42 +0200 Subject: [PATCH] Updates comments & docstrings --- maze.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/maze.py b/maze.py index 47777ae..a3a61f0 100644 --- a/maze.py +++ b/maze.py @@ -24,10 +24,11 @@ class Maze: The Maze object has given attributes: :var bool status: False = End of game (file error, end of game or quit) - :var str ground: Element under player - :var int position: Player index in string :var int COL_NB: column number of the maze :var int RANGE: string range + :var int MAX_ITEMS: number of items + :var str string: contain maze without EOL in astring + :param filename: maze filename """ @@ -60,7 +61,7 @@ class Maze: 1 for _ in elmt_val('name', 'item', True) ) self.COL_NB = MAZE_SIZE + 1 # List starts to zero - self.RANGE = range(self.COL_NB * MAZE_SIZE - 1) # last EOL + self.RANGE = range(self.COL_NB * MAZE_SIZE - 1) # remove last EOL self.status = True else: