Today, we develop an algorithm.
from maze import Maze if __name__ == '__main__': m = Maze('./maze.png') max_i = 100 while not m.is_exit() and max_i > 0: max_i -= 1
The Maze class provides you
get_next_position() can_move() turn_left() turn_right() is_exit() move()
and some more!
mirco.schoenfeld@uni-bayreuth.de
https://xkcd.com/303/