Walls in a "classic" dungeon serve to present clear alternatives -- just as do the streets of a city, paths through a forest, passes through a mountain range, crossings of a river, and so on.
This is not a matter of a plotted story, since even with but three options at each juncture, the number...