Recent

Author Topic: SideWinder Maze: Not that fantastic (Too simple)  (Read 916 times)

Boleeman

  • Hero Member
  • *****
  • Posts: 1164
SideWinder Maze: Not that fantastic (Too simple)
« on: March 21, 2026, 11:26:08 am »
A SideWinder Maze


Solution is too simple.
1st horizontal path is where most of it ends up.
Not that great.

Went on to look at another type !


Perhaps someone can make this wind a bit more?

Thaddy

  • Hero Member
  • *****
  • Posts: 19606
  • Glad to be alive.
Re: SideWinder Maze: Not that fantastic (Too simple)
« Reply #1 on: March 21, 2026, 08:02:20 pm »
Random(2)? Do you really mean just 0 and 1?
Random(x) is not inclusive for X so to represent 0,1,2 you have to do Random(3).
(Everywhere you use Random, not just here)
for 0,1,2,3 it is random(4).
« Last Edit: March 21, 2026, 08:32:05 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

Boleeman

  • Hero Member
  • *****
  • Posts: 1164
Re: SideWinder Maze: Not that fantastic (Too simple)
« Reply #2 on: March 21, 2026, 08:50:43 pm »
The SideWinder functionality works, just need to work out a strategy so the 1st horizontal path length is minimized/ shortened consistently.

The SideWinder maze was interesting to learn about, but not very effective in producing complex maze paths.


As mentioned previously, I ended up making another maze using a different search method that is much consistent in making higher complexity level mazes.

Want to look at spanning trees (Prim's algorithm, Kruskal's algorithm) and some other interesting Maze algorithms. Python does some nice picture mazes, so that would be really nice to do in Lazarus.
« Last Edit: March 21, 2026, 08:59:01 pm by Boleeman »

Boleeman

  • Hero Member
  • *****
  • Posts: 1164
Re: SideWinder Maze: Not that fantastic (Too simple)
« Reply #3 on: April 07, 2026, 07:32:13 am »
Just recently found a free Paint.Net plugin that does random square/rectangular mazes.

https://forums.getpaint.net/topic/8448-random-mazes-ymd100725/

It gave me some ideas on adding extra rendering features to my own Lazarus Maze programs.
 

 

TinyPortal © 2005-2018