Skip to content

rhietala/theseus-and-the-minotaur

Repository files navigation

Theseus and the Minotaur

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:

  • * player
  • M minotaur
  • # wall

Controls:

  • n: north
  • s: south
  • e: east
  • w: west
  • d: delay, skip your move
  • u: undo last move
  • q: 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

About

Theseus and the minotaur maze game in CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages