We can use this technique to build an infinite runner with the following train of thought:
- Store the key levels (change of world or difficulty)
- Assign them a higher-level director to the current level builder
- Swap initial generated levels with the new ones, or keep using pattern levels to generate more until the game finishes
As demonstrated in the research cited in the following section, this technique works well with 3-grams (as used in the recipe).