Like this:
╭───┬──┬─┬───┬────┬──┬┬─┬┬┬┬──┬───┬───┬─┬┬─┬┬┬─┬──┬┬┬────┬──╮ ├╴╷╶╯╭─┴╴╵╶─┬┴╮╷╭╴│╶╮│╵╷│╵╵╵╭┬╯╭──┴╴╭─╯╷╵├╮│╵╰╴│╷╶┤╵╰─╴╶╮╵╷╶┤ ├╴╰─╮│╭╮╶╮╭─┼╮╵├┴╮│╶┴╯╷│╰╴╶─┤│╷╰╴╭╴╶┼─┬┴╮╵╵├╮╶╮╵╰╮│╭┬──╮╰─┴┬┤ ├─╮╶┼┤│╵╭┴╯╭┤╵╶┤╷├┴┬╮╭╯│╶─╮╶╯╰┼┬─┴─╮╵╭┴╮├╴╷╵├─╯╶┬┤╰╯├┬╴╵╭─╮││ ├╴├╮│╰┤╶┼─╴╵│╭╮│╰╯╷╵├┼┬╯╭┬┼─┬─┤╵╶╮╷╵╷╰╮││╷├─╯╭─┬╯│╷╷╵╵╶╮│╭╯││ │╷╵│╰╴╰╮╰┬╴╷╰╯╵╰┬╴│╶┤╵╰╴│╵╵╶╯╭┴─┬┼┤╷├╴╵╵╰╯╰┬╮╵╶┤╷╰┼╯╷╷╷│╵╰┬╯│ ├┴╴╰┬─╴├╴├─╯╶─┬─┤╭┴┬┼╴╶╮├─╮╭─┴╴╶┤╵╰┤╰╮╭─╴╷╭╯╵╷╷├┼╮╵╭╯├┼┴╴╶╯╷│ ├──╮╰┬╴╰╮╵╶┬┬╮│╷│╵╷╵╵╶┬┴╯╭┤╰╴╭──┤╶─┴╴╰┼╴╷╰┤╷╶┼┤╵╵├╮│╷╵│╶╮╶┬┴┤ ├╴╷│╶╯╷╶┤╶─╯╵│├╯╰─╯╭╮╷│╶╮╵│╷╭┼─╴╰╴╷╭╮╭┤╷├─┤├╮│╰╮╶┤╰┴╯╷├╴│╶┼╴│ │╭╯│╭─╯╶╯╶─╮╶┴┴──╮╶╯├╯╰╴╰╮├╯╵╵╶╮╶╮│╵╰┤╰┴┤╷├╯╰┤╶┼─┼┬╴╷│├╴╰─╯╭┤ ├╯╶┴┼╮╭╴╭╮╷├──╮╶┬╯╷╶┴┬─╴╶┴╯╷╷╶╮├─┴┤╭─┴╴╷╰╯├─╴│╷╰╴│╵╷│╰┴╮╭─╴╵│ │╶──┤├┼─╯├┼┴─╴├╴╵╶┴┬─┼┬╴╶──┤│╭┤╵╭─╯│╭─┬┴╮╶┴╴╶┼┴╴╭┤╭╯├┬─╯├╴╭╴│ ├┬╴╶┤│╰─╴│╰┬─╴╰╮╭──┴╴╵╵╶─┬─┴╯╵│╶┼╴╷├╯╶┤╶┼┬─╴╷│╭┬╯╵├┬╯╰╴╭┤╶┼─┤ │╵╶─╯╰┬╮╷│╶┴┬┬╴├╯╭───┬╮╭╮├┬──╴╰─┴╮├╯╶─╯╶┤╰┬╴╰┤╵╵╭╴│╰╮╭╴│╵╷╰╴│ │╭╴╭╴╶╯╵│╵╷╶╯╵╷╰─╯╷╭╮╵╵╵╰┤╰─╴╶┬┬┬╯╰╴╭╴╭╴├╴╵╭╴╰──╯╷│╭┴╯╷╰─┴┬╴│ ├╯╶┤╶┬╴╷╰┬╯╶╮╷╰╮╷╶┴╯│╷╷╷╶┴╮╷╶─╯│╵╷╶─┤╶┤╶┴╴╷│╭──╴╷├╯╵╷╭╯╷╶╮│╶┤ ╰──┴─┴─┴─┴──┴┴─┴┴───┴┴┴┴──┴┴───┴─┴──┴─┴───┴┴┴───┴┴──┴┴─┴─┴┴─╯
This program should run on both recent versions of Python 2 and on Python 3. Start with:
./textmaze.py
or:
python textmaze.py
Optionally, you can adjust the size of the maze:
python textmaze.py 12 20
This script needs to output Unicode. If your Python is too afraid ("UnicodeEncodeError") then probably your terminal doesn't support Unicode, or doesn't advertise this capability. How does the output of:
cat README
look? Good? Then this:
PYTHONIOENCODING=UTF-8 python textmaze.py
will work for you.