Escaping the Maze

Prof. Dr. Mirco Schoenfeld

What this is about

Today, we develop an algorithm.

Getting Started

Getting Started

  1. Get the code base!
  2. Unpack the zip file
  3. Inspect the files
  4. Start coding.

API

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

API

The Maze class provides you

get_next_position()
can_move()
turn_left()
turn_right()
is_exit()
move()

and some more!

Thanks

https://xkcd.com/303/

Back to Lecture Website