Examples
Basic Examples (1)
Make a random rectangular grid labyrinth:
Scope (2)
Make a random hexagonal grid labyrinth:
RandomLabyrinth can be given different properties:
If the properties argument is All, then an association with all properties is returned:
Options (1)
GridLayout (1)
The option "GridLayout" specifies the type grid graphs used to make the labyrinth. It takes the values "Rectangular" and "Hexagonal":
Applications (3)
Make a rectangular grid labyrinth and show it together with a solution:
Make a hexagonal grid labyrinth and show it together with a solution:
Generate 100 labyrinths:
Show the histogram of the shortest path solution lengths:
Show the labyrinths with the smallest and largest shortest paths solutions:
Possible Issues (2)
For larger size values the labyrinth generation might be slow, especially, for hexagonal labyrinths:
The making of rectangular labyrinths with same size parameters is faster:
Neat Examples (3)
Larger rectangular grid maze:
A larger hexagonal grid maze with its largest connected components colored:
A grid of tiny labyrinths:
Publisher
Anton Antonov
Related Links
Version History
-
1.0.1
– 09 January 2026
-
1.0.0
– 07 January 2026
Related Resources
Author Notes
Implemented or otherwise replied to all suggestions/comments.