Skip to content

tiwo/textmaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Like this:

╭───┬──┬─┬───┬────┬──┬┬─┬┬┬┬──┬───┬───┬─┬┬─┬┬┬─┬──┬┬┬────┬──╮
├╴╷╶╯╭─┴╴╵╶─┬┴╮╷╭╴│╶╮│╵╷│╵╵╵╭┬╯╭──┴╴╭─╯╷╵├╮│╵╰╴│╷╶┤╵╰─╴╶╮╵╷╶┤
├╴╰─╮│╭╮╶╮╭─┼╮╵├┴╮│╶┴╯╷│╰╴╶─┤│╷╰╴╭╴╶┼─┬┴╮╵╵├╮╶╮╵╰╮│╭┬──╮╰─┴┬┤
├─╮╶┼┤│╵╭┴╯╭┤╵╶┤╷├┴┬╮╭╯│╶─╮╶╯╰┼┬─┴─╮╵╭┴╮├╴╷╵├─╯╶┬┤╰╯├┬╴╵╭─╮││
├╴├╮│╰┤╶┼─╴╵│╭╮│╰╯╷╵├┼┬╯╭┬┼─┬─┤╵╶╮╷╵╷╰╮││╷├─╯╭─┬╯│╷╷╵╵╶╮│╭╯││
│╷╵│╰╴╰╮╰┬╴╷╰╯╵╰┬╴│╶┤╵╰╴│╵╵╶╯╭┴─┬┼┤╷├╴╵╵╰╯╰┬╮╵╶┤╷╰┼╯╷╷╷│╵╰┬╯│
├┴╴╰┬─╴├╴├─╯╶─┬─┤╭┴┬┼╴╶╮├─╮╭─┴╴╶┤╵╰┤╰╮╭─╴╷╭╯╵╷╷├┼╮╵╭╯├┼┴╴╶╯╷│
├──╮╰┬╴╰╮╵╶┬┬╮│╷│╵╷╵╵╶┬┴╯╭┤╰╴╭──┤╶─┴╴╰┼╴╷╰┤╷╶┼┤╵╵├╮│╷╵│╶╮╶┬┴┤
├╴╷│╶╯╷╶┤╶─╯╵│├╯╰─╯╭╮╷│╶╮╵│╷╭┼─╴╰╴╷╭╮╭┤╷├─┤├╮│╰╮╶┤╰┴╯╷├╴│╶┼╴│
│╭╯│╭─╯╶╯╶─╮╶┴┴──╮╶╯├╯╰╴╰╮├╯╵╵╶╮╶╮│╵╰┤╰┴┤╷├╯╰┤╶┼─┼┬╴╷│├╴╰─╯╭┤
├╯╶┴┼╮╭╴╭╮╷├──╮╶┬╯╷╶┴┬─╴╶┴╯╷╷╶╮├─┴┤╭─┴╴╷╰╯├─╴│╷╰╴│╵╷│╰┴╮╭─╴╵│
│╶──┤├┼─╯├┼┴─╴├╴╵╶┴┬─┼┬╴╶──┤│╭┤╵╭─╯│╭─┬┴╮╶┴╴╶┼┴╴╭┤╭╯├┬─╯├╴╭╴│
├┬╴╶┤│╰─╴│╰┬─╴╰╮╭──┴╴╵╵╶─┬─┴╯╵│╶┼╴╷├╯╶┤╶┼┬─╴╷│╭┬╯╵├┬╯╰╴╭┤╶┼─┤
│╵╶─╯╰┬╮╷│╶┴┬┬╴├╯╭───┬╮╭╮├┬──╴╰─┴╮├╯╶─╯╶┤╰┬╴╰┤╵╵╭╴│╰╮╭╴│╵╷╰╴│
│╭╴╭╴╶╯╵│╵╷╶╯╵╷╰─╯╷╭╮╵╵╵╰┤╰─╴╶┬┬┬╯╰╴╭╴╭╴├╴╵╭╴╰──╯╷│╭┴╯╷╰─┴┬╴│
├╯╶┤╶┬╴╷╰┬╯╶╮╷╰╮╷╶┴╯│╷╷╷╶┴╮╷╶─╯│╵╷╶─┤╶┤╶┴╴╷│╭──╴╷├╯╵╷╭╯╷╶╮│╶┤
╰──┴─┴─┴─┴──┴┴─┴┴───┴┴┴┴──┴┴───┴─┴──┴─┴───┴┴┴───┴┴──┴┴─┴─┴┴─╯

How to run:

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.

About

generates mazes with box drawing characters

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages