Photo by Susan Yin on Unsplash

As a curious web developer and addicted guy to search algorithms, I faced several challenging questions about solving mazes in Javascript with different conditions and capabilities. In this article, I’ll show you several mazes and solutions, based on my own experience.

Prerequisites

Before we start handling the mazes, let’s talk about the board itself. The 2-d board includes zeros and ones: “zero” represents an available cell (one can go through) and “one” represents a blocked cell, which one cannot go through. The board is represented by an array of arrays: every sub-array is a row in the board and every…

Itay Eylon

Entrepreneur and Senior Lead Developer in Check Point Software Technologies, Tel Aviv, Israel. Follow me on Twitter and GitHub: @itayeylon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store