Skip to main content

A game of maze.

Project description

A game of maze.

Idea of the game is to find a path through the maze to spot marked by ‘X’.


Python 2.7 with curses. Does not work with Python3. Tested with Cygwin and Mac OS X.


Install latest version: pip install mazingame


You will start at some location in the bottom of the maze. ‘X’ is somewhere nearer the top of the maze. Move using cursor keys or ‘w’,’a’,’s’,’d’. Quit pressing ‘q’ or Ctrl-C.

When, or if, you reach ‘X’, the ending score is saved to SQLite database. The default highscore file location is $HOME/.mazingame_highscores.sqlite. Use environment variable MAZINGAME_HIGHSCORE_FILE to set another file.

Command line options include:
-f, --fullscreen

Use terminal to show entire maze. But only if terminal size is larger than the maze.


Show shortest path. Remember: this is cheating.


Show entire maze. Remember: this is cheating.

-hs, --highscores

Show high scores.

And a few more.

Note: database in high score file may change from version to version, if you get SQLite error when saving high scores, delete your high score file.


This hobby project was inspired by the book “Mazes for Programmers” by Jamis Buck (

See for some background about MazinGame.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mazingame-1.0.0.tar.gz (14.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page