Hi! I'm not a Godot fan, but there are infinite soruces/articles/examples/blog posts that talks about roguelikes and their algorithm.
Look here: https://www.reddit.com/r/roguelikedev/ which has a link to this tutorial on Godot: https://github.com/Bozar/GodotRoguelikeTutorial/wiki
Or there: http://roguebasin.com/index.php?title=Articles which is a super good start to learn about roguelikes genre and algorithms without focusing on languages/tool/engine
Or over there: https://forums.roguetemple.com/