Maze algorithms

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!
Post Reply

How do you create a maze?

By an array
6
86%
By pset/point or peek/poke
1
14%
 
Total votes: 7

User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Maze algorithms

Post by Mentat »

How would anybody make a maze making algorithm? I have the cpu add a point as long as there isn't a point in the immediate and immediate to immediate spot. For some reason, it's slow and doesn't work well (its TI-BASIC, which has a good pxl-checker but slow pseter).

This forum is more for sharing ideas, not as just a question.
For any grievances posted above, I blame whoever is in charge . . .
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

I typically use an array for that. A 2 dimensional array that is.
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
User avatar
Stoves
Veteran
Posts: 101
Joined: Fri Feb 10, 2006 12:24 am
Location: Nashville, TN

Post by Stoves »

Interesting maze algorithm discussion and reference page: http://www.astrolog.org/labyrnth/algrithm.htm
Anonymous

Post by Anonymous »

Hi,

I would suggest making the maze in the array and then display the maze after it has been made. Accessing memory tends to be faster than using a function like pset because pset does some extra stuff you don't always need.
Mac
Veteran
Posts: 151
Joined: Mon Aug 06, 2007 2:00 pm

I voted array

Post by Mac »

Try my Maze from Hell
http://www.network54.com/Forum/190883/m ... 1021149818

I've seen people actually solve it!

Mac
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

For any grievances posted above, I blame whoever is in charge . . .
Post Reply