Exploring Different Ways to Solve a Maze

So you want to solve a maze and could use some extra help. Or, more likely you are writing a computer program and want to know what options you have to solve a maze. I will take you through 8 popular maze solving methods and then discuss some of the the other most common everyday ways of solving mazes people use and give you some cheat codes. Here is what you can expect:

8 MAZE SOLVING METHODS

  • 4 METHODS FOR PHYSICAL MAZES SOLVED FROM THE INSIDE

  • 4 METHODS FOR MAZES VIEWED FROM ABOVE

5 COMMON MAZE SOLVING OPTIONS

2 CHEAT CODES TO SOLVE MAZES

8 MAZE SOLVING METHODS

Let’s start with 4 methods used for physical mazes, like a hedge or corn maze, where you do not know what the maze looks like, i.e. you are a traveler in a maze looking to find the exit or goal.

  • Random Mouse Method - Very basic way to solve a maze and probably the way you typically do it. Starting walking, and randomly pick a direction at each intersection you reach. Nothing fancy, and not efficient, but works eventually. Also works for regular mazes you see from above - and probably how you solve most puzzle mazes.

  • Wall Follower Method - Well known way to solve a maze where you follow a wall consistently through a maze until you solve it. It can be a left handed or a right handed method, but once you choose your side you must stick with it ! To use this the maze must be simply connected, meaning it has no loops and all walls are attached to the outer walls of the maze.

  • Pledge Algorithm Method - A wall following method that can deal with disjointed walls. It involves counting turns you make (clockwise turn is positive, counter-clockwise turn is negative) and making decisions based on getting the number back to zero. Here are rules to follow to use it in practice:

    • Start at the entrance of the maze.

    • Move forward until a wall is encountered.

    • Follow the wall on the right-hand side until you reach the exit.

    • If you encounter a disjoint wall, you should turn left and continue following the wall on its right-hand side. How do you know you have a disjointed wall ? You arrive back at the same spot in a disjointed wall (a loop).

    • If you return to the starting point without finding the exit, turn around and follow the wall on its left-hand side until it reaches a new path. Then, it should follow the wall on its right-hand side again.

    • Repeat steps 3-5 until you reach the exit.

  • Trémaux's Algorithm - Uses a set of rules to solve a maze:

    • If you visit a junction with new paths, pick one at random.

    • Cross it out as you explore.

    • If you reach a dead end, retrace your steps to the last junction with unexplored paths and choose another path.

    • If you reach a junction with all paths already explored, retrace your steps to the last junction with unexplored paths and choose another path.

The following 4 methods of solving a maze are useful for typical puzzle mazes where you can see the complete maze from above:

  • Reverse Solve (Dead-end filling) - In this method you start at a known dead end and color in the pathway until you reach a junction. Eventually this process leads to a maze completely filled in expect for the correct pathway ! I like to use this for hidden message mazes !

  • Recursive algorithm - Math, coding. That is where this algorithm comes in. It uses X and Y values to check each spot inside a maze and determine if the space has been visited yet or not. It marks incorrect solutions as it goes and if it finds the correct pathway it marks in the X/Y values (pathway) of how it got there.

  • Maze-routing algorithm - Commonly used in chip design but can be used to solve a maze also. It is not something a person would use unless they coded it into a program. It works by finding the distant between any 2 points in the maze, blah, blah, blah, look you solved the maze !

  • Shortest Path Algorithms - A collection of many algorithms which all attempt to do the same thing - find the shortest path between 2 points - like let’s say the start and the goal ! While the details of this set of algorithms may not be for the average person to use to solve a maze, be glad it is used whenever you need directions between 2 points (Google Maps !, etc.)

Now let’s look more specifically at real world examples and the methods most people actually use for puzzle mazes. What method do you use to solve drawn mazes ?

5 COMMON MAZE SOLVING OPTIONS

  • With a writing utensil - probably the most common way to solve a drawn maze. You have a maze printed out or in a book in front of you and you grab a pen or pencil and solve using it. Makes the maze a one time use unless you have an eraser that does a good job and doesn’t harm the paper too much

  • With your finger - you use your finger as a guide to work your way through the maze and solve it. This method allows multiple people to solve the same maze

  • With your eyes - my personal most common maze solving method. Works for most maze types, although you need to add in a more comprehensive method for any spiral maze.

  • Reverse fill with a writing utensil - a method I used to use because I liked the way it looked. You use a pen / pencil and start at dead ends, filling each in until you reach a new branch. Eventually this leaves only the correct path NOT filled in, creating a reverse solve !

  • Of course online puzzles and mazes will use a combination of arrow keys or your mouse to solve a maze.

2 CHEAT CODES TO SOLVE MAZES

  • Solve it in Reverse - if a maze is giving you trouble, try solving it in reverse. Most mazes are mush easier this way since the maker of the maze likely designed it specifically to be solved in the Start to Goal direction. Of course some maze designers take this method into account and design difficulty in both directions ! These are called Dual entrance/exit mazes and you can learn how to make on and see examples of them here.

  • Middle Marking - This is what I call it. Before starting the maze pick a central spot in the maze and follow it until you reach a dead end. Color out that dead end. Choose the spot directly to the right of that spot and do the same. Repeat. The goal is to block out one side of the maze as unpassable by cutting it in half. Can also be done north/south. Here is an example where I repeated this 5 times (using 5 different shades of grey) and cut off the bottom half of the maze as a possibility. If I wanted to continue using this method I would start at the northern border and work my way down until I found the passable pathway !

Ohio Maze with shaded dead ends shown

Those are 15 ways to solve a maze. Good luck and happy mazing !

Case Study#6 - How to Improve a Maze - Uxmal

While this particular maze never made my list of abandoned mazes or mazes in need of improvement, in the time between making this maze and posting it on the site I decided to try to improve it. So, now it becomes my 6th case study.

If you want to read the previous 5 case studies:

Case Study#1 - How to Improve a Bad Maze - Tiki Totem Maze

Case Study#2 - How to Improve a Bad Maze - Danzante Conchero Chichimeca Maze

Case Study#3 - How to Improve a Bad Maze - Red Rocks Amphitheatre Maze

Case Study#4 - How to Improve a Bad Maze - The Hollywood Sign

Case Study #5 - How to Improve a Bad Maze - Severance Hall

You might notice that this blog post title dropped the “bad” maze, because in my opinion the original incarnation of the maze was not bad, just less than what it could be.

Let’s look at that maze, also known as the ‘before’. Now, I want to mention that no matter what size screen you are on it will probably not be large enough. I went max detail on this maze and it is meant to be movie poster size. I like how it looks, but it is a bit bland. Can I improve it?

Here are the enhancements I made to improve and finish the maze:

1. Resize - Any re-sizing will help the maze be seen and improve the look on a screen or when printed. Got rid of a lot of the empty space on top and bottom of the maze.

2. Grass added - I added the setting of the building (no more floating !).

3. Sky added - If you add the ground you should add the sky too!

4. Changed the grout and stone colors - The color of the ruins is what you would see if you were standing in front of them. The grout switches from black to light grey and really changes the look.

5. Change arrow colors - The black arrows no longer look good on the grass colored background so I matched them to the new maze color and that meant I should make sure the…..

6. Letter and branding changed - Re-color to match the ruins and look better against the new background.

FINAL THOUGHTS

And now the “After”. Much better maze. Still difficult to see all the detail without printing it out.

Mayan Ruins at Uxmal Maze

I think this is an improvement. What do you think ?

Maze of the Week #90 - The Mayan Ruins at Uxmal

Maze of the Week #90 takes us back to Mexico and my 2nd different maze of a pyramid or ruin with this Mayan Ruins Maze from the Uxmal archeological site in the Yucatán of Mexico. Here are my other similar mazes:

Chichen Itza Maze

Monte Albán Maze

YouTube: Here is a tourist guide to the site with some great scenes !

The Maze: I re-worked this maze after finishing it. I think the improvements improved it a bit; not a drastic change, but definitely better. The maze is large and more difficult than usual, but I held back making it extra difficult. Here is the final maze:

Mayan Ruins at Uxmal Maze

The Mayan Ruins at Uxmal Maze

I hope you enjoy the maze. Maze download is available on the homepage. Check out my YouTube channel where you can watch mazes being made and solved !!! This was my last of 5 straight mazes with case studies - I hope you enjoyed them !

Coming next week:

A maze of more Mexican ruins !

6 Completed Mazes that Deserve a bit of improvement

I have been thinking alot recently about improving my mazes. It started when I found over 20 mazes that I had abandoned for one reason or another. I wrote 2 blog posts about them that you can read here:

Why I abandoned these 10 mazes - Mistakes in Maze making

10 More Abandoned Mazes - Mistakes in Maze Making

But I also knew that a few of these could be salvaged with some work. And that led me to a series of case studies where I evaluated and transformed some of the mazes. I really enjoyed this. I had previously put in work and it was nice to see some of the projects through to completion even if it sometimes meant being creative in my solutions. Today I am doing something similar. These are completed mazes that have been featured as Mazes of the Week previously. I sometimes think I could improve them with some changes. The inspiration came from Maze of the Week #62 that I made of a windmill. When I posted it I thought it was ok…which was not good enough so I made some changes and posted a newer better version the next day.

Initial Maze: ok.

Windmill  maze

Revised Maze: I decided to add some shadows to improve the maze…and resized it because the lawn in front is too large IMO. Then I added a title. I think this really improved it. I hope you agree !

Windmill Maze

Here are 6 mazes I am considering improving in some way. I may never actually do all of them, but this is what I am considering:

  • Museo Soumaya Maze. The simple black and white maze (plus green for the plants) isn’t bad. But colorization would be more accurate. And this building always has interesting shadows on it in photos.

Museo Soumaya Maze
  • Burj Al Arab Hotel Maze. Colorize. Shadowize (is that a word?). You know this building gets a lot of sun ! That means shadows. I always get a good reaction to this maze and know I could improve it.

Burj Al Arab Hotel Maze
  • Soldiers and Sailors Memorial Arch Maze. The empty band near the top contains a very intricate scene that I never started/completed. I need to find a high quality picture of it…then take the time to draw it but was not sure it would be worth the effort (50 soldiers plus horses ?). Right now the maze does not go into or above that section.

Soldiers and Sailors Memorial Arch Maze

Photo of the monument:

Soldiers and Sailors Memorial Arch

Billy Wilson - flickr

  • Severance Hall Maze. I already took this from abandoned to MotW status. Now I want to fix the trees, grass and bushes to be more natural. These are flat. I can do better. I have been making better trees and grass recently. So this is an abandoned maze that I revised…and now I want to revise again.

Severance Hall Maze
  • Pro Football Hall of Fame Maze - Colorize. Shadowize.

Pro Football HOF black and white maze
  • The Gherkin Maze - The structure of the windows means this could have a really cool hidden solution if I wanted it to. But what should it be ? I already have 2 versions, color and black and white. Do I need a third ?

The Gherkin blk and white maze

So those are the 6 mazes that I look at and wonder if I should take the time to improve them. I’m sure a few of them will be done when I have time. If you have a maze you would like to see improved drop me a note !