pygame is
Simple DirectMedia Layer is
Site Swing
Lost the Plot

Lost the Plot - 0.02

Sean J McKiernan (mekire)



An exploration into 'Depth first search' maze creation with recursive backtracking.

Generate a maze of several different sizes and then solve that maze using an A* algorithm.
Be aware that performance is greatly improved by unchecking the 'Animation' box (but its not nearly as amusing.)

(with the cell size set on 1x1 pixel, my computer takes about 10 seconds to generate the complete maze if animation is off)


Mouse: Place start/goal, click buttons


Space: Start
Enter: Reset
+: Increase cell size
-: Decrease cell size
d: Toggle animation on/off
L: Toggle loops on/off
c: Toggle generator color on/off
i: Reset maze to unsolved state
Esc: Quit


  • Generator points now grow in all four directions.
  • Multiple generator points can be placed.
  • 'c' key makes generators each display in a different color.
  • 'i' key resets maze to unsolved state without losing it so that different paths can be tested.
  • User can choose between having loops or creating a 'perfect' maze.
  • The thickness of the walls can now be modified.


Home Page:


click to view original size


Lost the Plot - 0.02 - Dec 13, 2011
Lost the Plot - 0.01 - Dec 7, 2011 account Comments

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

December 16, 2011 1:36pm - Zachariah Callaway - nickname: (xzcallaway)
A .deb package of Lost the Plot is available for download at
December 15, 2011 8:29pm - Jarrod Taylor - nickname: (jrock) - 4/5
Nice Work. I am actually getting ready to write something similar. Runs well and has a clean interface.

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

Jan 31, 2017

Jan 24, 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)