You can read more about the puzzle generator here: https://scizzorz.github.io/mushrooms.pd/posts/puzzles/