I wrote a terminal dungeon crawler game with pure Ruby in less than 150 lines. Here’s a guide