PHP Puzzles:
Staircase Path

By Sherri Wheeler

Welcome to a new year! In our last puzzle, we started building a collection of related functions to output and navigate through a grid, starting with printing our grid to a command-line using dark and light shade characters to indicate wall or open path, respectively. In this article, we look at plotting a route from the entrance (top-left) to the exit (bottom-right) of our grid.

This article was originally published in the January 2021 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Leave a comment

Use the form below to leave a comment: