Exercise: Generating Geometric Masks

Try to use the Mask API we've developed to programmatically produce masking patterns.

We'll cover the following

Problem statement

Produce a mask that has been prepopulated with a pattern of concentric squares. Connect the concentric squares with horizontal and vertical paths that cross in the center. Then, produce a maze on it.

The mask should be configurable, which is to say that we should be able to specify how many concentric squares we want and how wide each band should be. We can assume the gap between squares is the same width as the band.

For example, if we choose to generate a mask with three bands, where each band is five cells wide, and then we generate a maze on it, we should get something like the following:

Get hands-on with 1400+ tech skills courses.