pygame is
Simple DirectMedia Layer is
Site Swing

PyMaze - 1.2

Kevin (jach)



I made this in a few hours as one of the first steps toward an edutainment game I have in mind. Still, it's pretty fun by itself when you're bored, so I'm putting it up here. (If the guy moves way too fast, that means you have a super de duper computer and I am jealous!) More info in the readme.


I added a few command line arguments like --diff, --dim, and --path. Changed the overall look of the maze and made the actual program more efficient. The maze generation algorithm is still recursive though...


Home Page:


click to view original size


PyMaze - 1.2 - May 8, 2008
PyMaze - 1.1 - May 5, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

December 5, 2008 8:28pm - Jack Ha - nickname: (sabaki)
Cool! Add a solver too? :)
May 12, 2008 8:36am - Dylan J. Raub - nickname: (dylanjraub)
Ohhh... I get it! Not a bad Idea.
May 11, 2008 4:20pm - RB[0] - nickname: (roebros) - 4/5
Very nice :D
I love the map generator - a lot simpler than ones I have tried :)
Beat my first try though :D
May 8, 2008 9:08am - pymike - nickname: (pymike)
Cool new release! It would be neat if it had a menu and an end screen :-)
May 6, 2008 8:59pm - Kevin - nickname: (jach)
Dylan: Look at the code. =P The readme's explanation isn't entirely correct though (that was an older and slightly different algorithm that didn't work out right.) You'll want to look at To sum it up though, it takes current cell, finds neighbors, goes to a neighbor that hasn't been visited, knocks down the wall between them, and repeats with the neighbor as the new current cell.
May 6, 2008 8:00am - Dylan J. Raub - nickname: (dylanjraub)
How? I've never been able to make such an algorithm... (how?)
May 5, 2008 6:19pm - Kevin - nickname: (jach)
Francesco: Thanks! And about the frame rate control, I know, but putting any cap on it makes it run too slow here. (200fps is what I get uncapped, and about the speed I want it, but with a 200fps cap I only get about 50.) But when I get around to the 1.2 release the speed will be equal for everyone and stuff will be optimized to run better.
May 5, 2008 4:23pm - Francesco Mastellone - nickname: (effeemme) - 4/5
Oh, and very nice game!
May 5, 2008 4:23pm - Francesco Mastellone - nickname: (effeemme)
Just add
to the last line, to make the game equally fast on any platform!
May 5, 2008 3:40pm - Kevin - nickname: (jach)
Dylan: Yes, it randomly generates a new maze each time you run it using a recursive algorithm I might eventually make iterative.
May 5, 2008 9:29am - pymike - nickname: (pymike) - 4/5
Yay! I beat it! Guy moves kinda fast though.
May 5, 2008 8:18am - Dylan J. Raub - nickname: (dylanjraub)
Question: is it randomly genorated?

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 31, 2017

Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)