Quote:
How do I move forward for maze game as I am watching though tutorial
May be not your error, but:
maze = [
['#','#','#','#','#','0','#','#','#'],
['#',' ',' ',' ',' ',' ',' ',' ','#'],
['#',' ','#','#',' ','#','#',' ','#'],
['#',' ','#',' ',' ',' ','#',' ','#'],
['#',' ', '#',' ','#',' ','#',' ','#'],
['#',' ', '#',' ','#',' ','#',' ','#'],
['#',' ','#',' ','#',' ','#','#','#'],
['#',' ',' ',' ',' ',' ',' ',' ','#'],
['#','#','#','#','#','#','#','X','#',]
]
This may not have great impact with python, but other languages don't like it.
Another good habit is to not mix writing rules. Commas should be always followed with a space or never.
maze = [
['#','#','#','#','#','0','#','#','#'],
['#',' ',' ',' ',' ',' ',' ',' ','#'],
['#',' ','#','#',' ','#','#',' ','#'],
['#',' ','#',' ',' ',' ','#',' ','#'],
['#',' ','#',' ','#',' ','#',' ','#'],
['#',' ','#',' ','#',' ','#',' ','#'],
['#',' ','#',' ','#',' ','#','#','#'],
['#',' ',' ',' ',' ',' ',' ',' ','#'],
['#','#','#','#','#','#','#','X','#',]
]
This way, it is more obvious that something os off in last line of maze.