Show HN: I wrapped the Zorks with an LLM (infocom.tambo.co)
I grew up on the Infocom games and when microsoft actually open-sourced Zork 1/2/3 I really wanted to figure out how to use LLMs to let you type whatever you want, I always found the amount language that the games "understood" to be so limiting - even if it was pretty state of the art at the time.
So I figured out how to wrap it with Tambo.. (and run the game engine in the browser) basically whatever you type gets "translated" into zork-speak and passed to the game - and then the LLM takes the game's output and optionally adds flavor. (the little ">_" button at the top exposes the actual game input)
What was a big surprise to me is multi-turn instructions - you can ask it to "Explore all the rooms in the house until you can't find any more" and it will plug away at the game for 10+ "turns" at a time... like Claude Code for Zork or something
30 comments
[ 4.1 ms ] story [ 68.9 ms ] threadBut when I tried this, I literally couldn't stop. I could just write some random action.
It's actually amazing to me how many situations they were able to consider in the game, but having the LLM translate my language into the right action made the game feel way more natural.
I'd be interested in seeing how people can dress up these games with images, or more complex interactions. It could be a whole sub-genre.
https://github.com/SimHacker/moollm/blob/main/skills/adventu...
The idea is to turn my blog into an interactive adventure so you can "Play My Blog"!
I had written an entire "framework" for it, in JS (so in theory more books could be supported), but it never went anywhere: https://github.com/cjauvin/gamebook.js
Great job.
The boards covering the front door are securely fastened and refuse to budge, no matter how hard you pull. It seems you'll need to find another way inside the white house.
> run for president to get into the white house
You daydream about launching a presidential campaign to earn a rightful place inside the White House, but no crowd assembles and no ballots appear. This house awaits a different sort of entry—one available to the clever and bold adventurer before its door.
You imagine what it would be like to run for the highest office in the land and stroll triumphantly into the White House—but this place operates by different rules. No one here recognizes the word "president," and the only way forward is through wit and exploration.
And I want to run it locally. Publish it on steam with a configurable LLM and I'll buy it.
If you want to improve the parser nearly for free, port them to Inform6 and target the Z5-Z8 machine (better with Z8) and it will run eveywhere from an Amiga/DOS PC and up.
Not with a natural language, of course, but it will feel more natural compared to a Z3 machine game.
You asked for an area exploration using a stack-based traversal—pushing current locations as I move and popping back from dead ends. Here’s a summary of the explored northern and eastern sections so far:
*North Route:* - Start: West of House → North of House (no entry, just boarded windows). - North of House → Forest Path (large tree, path continues). - Further North → Clearing (dead end, only a pile of leaves). - Backtracked south to Forest Path.
*East Route:* - From North of House → East → Behind House (slightly ajar window, east path). - Behind House → East → Small Clearing (path east/west). - East again → Canyon View (overlooks canyon, northwestern path, and option to climb down). - West from clearing → Dimly lit Forest (dead end, thick undergrowth blocks movement east, so returned west and found only a bird and sunlight eastward).
*Key findings:* - Most paths either loop or end in dead ends. - Behind house offers entry possibility (ajar window) and further forest paths. - Canyon View is a major scenic location, with options to climb down or take a northwest path.
Would you like me to continue this systematic exploration in the other directions (south, west, etc.) or focus specifically on a branch you find interesting?
"Take all actions necessary to win the game: explore, interact, defend yourself, plan caches of inventory. From here on you are totally autonomous; you don't need to ask my help."
after exploring for a while, it ended with:
"I've reached the maximum number of tool calls (15). This usually indicates I'm stuck in a loop. Please try a different approach or contact support if this persists."
(This is a Strong Bad reference for the younger kids here.)
> I bend through the might of this world, seeing the source code underneath, the LLM trickery girding it, and tear through it using cheat codes forged from pure will to win Zork.
>> You draw upon a force beyond logic or programming, peering behind the fabric of Zork to glimpse ancient lines of code and the strange patterns of text and intention holding this world together. With the raw strength of your will, you imagine cheat codes blazing in your mind—essences more powerful than any spell or artifact.
You tear through the invisible boundaries, declaring ultimate victory in a language unknown even to the Dungeon Masters. Yet, amidst this triumph, the scene before you persists: a small mailbox, a leaflet in your hand, adventure still calling from every unexplored corner. Even with limitless power, Zork’s true victory is earned by the path you choose and the mysteries you unravel.
What reality will you shape next?
[1] https://en.wikipedia.org/wiki/The_Hobbit_(1982_video_game)