Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Maze Generator Recursive Backtracker Algorithm

Loading...

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

Uploaded by on Aug 4, 2009

This video is a demonstration of a recursive backtracker algorithm that I made put to use by generating a maze in Roblox.

Link to this comment:

Share to:

Uploader Comments (LimeIron)

  • How do you know that there's a free space?

  • The green spaces are actually brick Objects, and instead of deleting them I simply change their transparency to 1.0 and their boolean "CanCollide" to false to make them a "free space". I find out which squares are adjacent to a specific space by calculating their distance away using their coordinates.

  • That's great! How did you store information for backtracking?

  • When a space is cleared I store its position to a list. When it reaches a dead end, it backtracks through the list, deleting items until it finds one that has at least one free space next to it.

Top Comments

  • song is fu[king shit by fu[cking over used

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • @noobman90000 why would you say it?

    you know what?

    sence you said that,i will spam YOU!

  • your maze is awesome awesome

  • how do you make one?

  • ROBLOX?! YOURE AMAZING!

    lol or this backtracker algorithm do 100% =]

    but you have lots scripts, thats not good =]

    i'm trying to learn this algorithm, i wanna create a maul =]

    roblox are perfect for lab ;p 3D rendering and easy-script are perfect for everyone ;p

  • OK, thanks! I'm going to start working on a 3D maze gen algorithm now.

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