New Zigtrig Maze Wizard

At the end of January, I published a blog post with a screenshot of a maze maker app that I’d created. That app is gone (because it was hosted by Anvil and I decided to stop using Anvil) but I now have a new maze maker app online. Below is a partial screenshot.


You’ll notice that it’s much simpler than the previous app: the four fields (maze width, maze height, wall width and image height) are gone. Now you just click one button to generate a new random maze. There’s also a new button to print the maze.

The Python code used to generate the mazes is the same as what I was using with Anvil, more or less, but now it’s running on Google Cloud Functions (GCF).  The web app is a vanilla HTML, CSS and JavaScript app hosted on Neocities. When the user clicks the “Make a Random Maze” button, some JavaScript code generates a random maze width (number of cells), a random maze height, and a random wall width. It then calculates the total image height (in pixels) so that it’s big enough to look good. It then sends those four parameters to my Python function on GCF via an HTTP request. My function on GCF generates a new maze and returns the SVG text of the maze in its HTTP response.

You might wonder why I published the new maze maker app on Neocities rather than on a page of the website. One reason is that is currently offline while I revise it, but there’s a deeper reason: I decided to focus my new company on a category that doesn’t include mazes. If a maze maker app was one of the few things on the website (in the early days), then a visitor might get confused about the company’s focus.

However, I thought it would be a shame to not publish the maze app at all. Someone might find it useful. So I published it elsewhere. Neocities is a good place to do that. You can publish arbitrary HTML, CSS and JavaScript there, and it’s free.

I’ll write about my company’s new focus in a future blog post. For now, you can enjoy the new Zigtrig Maze Wizard.

Photo Credit: The image at the top is by Pixaline on Pixabay.

A friendly human