Theseus and the minotaur maze game in CLI. The idea is that you must escape a maze while minotaur is chasing you.
Minotaur moves twice and it must move horizontally first if that is possible.
Requirements: python 3 and getch
library.
$ pip install getch
Characters:
*
playerM
minotaur#
wall
Controls:
n
: norths
: southe
: eastw
: westd
: delay, skip your moveu
: undo last moveq
: quit game (ctrl-c also works)
Starting the game:
$ python3 theseus-and-the-minotaur.py maze1.txt
#############################
#. . . . .#. . . .#. . . . .#
##### # # # ### ##### ##### #
#.#.#.#.#.#.#. . . . .#. . .
# # # ### # ### ########### #
#. . . . . . . . . . . . . .#
# # ### # # ### # # ##### # #
#.#.#. .#.#. . .#.#. . . .#.#
# # ### # # # # # ####### # #
#*#.#. .#.#.#.#.#. . . .#.#M#
# # # # # # # # # ##### # # #
#.#.#.#. .#.#. . . . . .#.#.#
# # # # # # # # # ##### # # #
#.#.#.#.#.#.#.#.#. . . .#.#.#
# # # # # # # # # ##### # # #
#.#.#.#.#.#.#.#.#. . . .#.#.#
# # # # # # # # # ##### # # #
#. . . . . . . . . . . . . .#
#############################
Moves:
It is also possible to start the game with initial moves:
$ python3 theseus-and-the-minotaur.py maze1.txt "n;n;e;s;s;s;s;s;s;e;n"
#############################
#. . . . .#. . . .#. . . . .#
##### # # # ### ##### ##### #
#.#.#.#.#.#.#. . . . .#. . .
# # # ### # ### ########### #
#. . . . . . . . . . . . . .#
# # ### # # ### # # ##### # #
#.#.#. .#.#. . .#.#. . . .#.#
# # ### # # # # # ####### # #
#.#.#. .#.#.#.#.#. . . .#.#.#
# # # # # # # # # ##### # # #
#.#.#.#. .#.#. . . . . .#.#.#
# # # # # # # # # ##### # # #
#.#.#.#.#.#.#.#.#. . . .#.#.#
# # # # # # # # # ##### # # #
#.#M#*#.#.#.#.#.#. . . .#.#.#
# # # # # # # # # ##### # # #
#. . . . . . . . . . . . . .#
#############################
Moves: n;n;e;s;s;s;s;s;s;e;n