Random Perfect Maze Generator with C++

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,822
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 12, 2010

I have written a simple program in C++ that randomly generates a perfect maze using Depth-First Search (DFS) algorithm. A perfect maze is defined as a maze which has one and only one path from any point in the maze to any other point. This means that the maze has no inaccessible sections, no circular paths, no open areas.

Double array of structs was used for the navigation grid in X and Y coordinates, stacks was used to back-track the path by popping the last position, and ofstream was used to output and save the generated maze into a specified file.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • Hye...do u still have the coding for this?

    If yes...can u pm me the code?

  • That is amazing! Good work!

  • hello...can i have some copy of your codes????

  • hey can i have some copy of your codes i just want some ideas....thanks

  • can i have the code? i really need it ! thx !

  • How you saved your 2D array to *.txt file?

  • Hey Mate

    can you please provide more technical detail in relation to filling the gap with dots between the star and the ending point (Search and fill algorithm)

    cheers

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more