I wrote this a couple of months ago, when, where I usually get inspiration, I saw something about writing text adventure games on Hacker News.
https://gitlab.com/-/snippets/4838216
This takes input from the minibuffer. You have to just figure out from successful moves if you can go in one direction or another.
Made with Bootstrap and my site generator script.