Finally, we have arrived at one of the cornerstones of roguelikes: procedural generation is probably one of the first things that comes to the mind of a player when they think about the genre, probably alongside thinking about permadeath and maybe ASCII graphics. Before we dive deeper into the code, it’s best if we explain a bit about what procedural generation is and what it is good for and most importantly what role it plays in the scope of this book.
Procedural generation is a deep topic, and we cannot do it justice with the two chapters we have devoted to ...