I do not know the code to move the traversal.
Maze = [ [ 
'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
         [ 
'.','.','.','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
         [ 
'#','#','.','#','#','.','.','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
         [ 
'#','#','.','#','#','.','.','#','#','#','#','#','#','#','#','#','#','.','.','.'
],\
         [ 
'#','#','.','#','#','.','.','#','#','#','#','#','#','#','#','#','#','.','#','#'
],\
         [ 
'#','#','.','.','.','.','#','#','#','#','#','#','#','#','#','#','#','.','#','#'
],\
         [ 
'#','#','.','#','#','.','#','#','#','#','#','#','.','.','.','.','.','.','#','#'
],\
         [ 
'#','#','.','#','#','.','#','#','#','#','#','#','.','#','#','#','#','.','#','#'
],\
         [ 
'#','#','.','#','#','.','#','#','#','#','#','#','.','#','#','#','#','.','#','#'
],\
         [ 
'#','#','#','#','#','.','.','.','.','.','.','.','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ '#','#','#','#','#','#','#','#'
,'#','#','#','#','.','#','#','#','#','#','#','#' ],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','.','#','#','#','#','#','#','#'
],\
         [ 
'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'
],\
]
x= "x"
Squares= 399
def PrintMaze():
    global Maze
    return "\n".join(' '.join(row) for row in Maze)

print(PrintMaze())

def MazeTraverse(Srow, col):
    Maze = []
    for i in range(Squares):
        Maze[4]= "x"
        return "\n".join(' '.join(row) for row in Maze)

print(MazeTraverse(60,61))

thanks
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to