We used the N-Gram predictor developed in Chapter 8, Learning Techniques, as a base for the level predictor in this recipe. This allowed us to focus on the high-level logic and let the predictor do its work.
We have an initial pattern from a level comprised of prefabs that have attached the LevelSlice component. Then, we use that pattern to create a new level with a similar style, and of the same size as the previous one.
It's important to put a unique identifier on each prefab for the recipe to work.