Wrote an article
Recently published articles series on building JavaScript Roguelikes. The first article shows you how to build a game from the ground-up. The next five walk you through building the logic for procedural room and passage generation.

https://medium.com/@nevkatz/list/javascript-roguelikes-b1ec9fa9b968