Live data from Hacker News

Show HN: I built an AI that turns any book into a text adventure game

kathaaverse.com

91–100 of 115 posts

Re: Show HN: I built an AI that turns any book into a text adventure game

#91
Orwellian comedy isn't really a thing but it should be if we're heading that direction. My 2 cents with kathaaverse...

  1984

  You are Stones, perpetually stoned and suspiciously cynical; the telescreen blares drivel about chocolate rations, which are obviously getting smaller, and you gotta decide if Big Brother's lies are even worth the buzzkill.

Re: Show HN: I built an AI that turns any book into a text adventure game

#92
post #44

From what I've seen, it doesn't seem like AI is very good at keeping track of events in a way that makes a logical narrative. I tried "The Hobbit" and it started with me having tea with Gandalf the wizard. There was a knock at the front door so I opened it and outside was Gandalf the wizard!

Maybe we can use it to build an Alzheimer simulator game then

Re: Show HN: I built an AI that turns any book into a text adventure game

#94
post #44

From what I've seen, it doesn't seem like AI is very good at keeping track of events in a way that makes a logical narrative. I tried "The Hobbit" and it started with me having tea with Gandalf the wizard. There was a knock at the front door so I opened it and outside was Gandalf the wizard!

I built my own LLM-based interactive text adventure system last year, but in addition to LLMs, it used an auxiliary database to keep track of where everything was, what state it was in, and so on.

The LLM thus did two things: first, it used a combination of the prompt, the user input, and the recent history of the chat and relevant extracts from the database state, to update the database with a new state; then after updating the database, it used all of the above to synthesize the output response.

A major component of the system was that, in addition to the usual blocks-world subject-property-object representation of the game state, the system also used the database to store textual fragments that encoded things like thoughts, plans, moods and plot points.

Adding programmatic constraints to the database and its updates made a vast difference to the quality of the output by preventing logical absurdity of the sort that has been described above - attempts by the LLM to do absurd things were simply rejected.

Finally, there was a hierarchical element to the story-telling, not just simulation. There is much more to storytelling than simulation, and experimenting with this became the most interesting thing about the whole enterprise; there is plenty of space for future research in this.

The downside was that all this complexity meant it was _extremely_ compute-intensive, and thus very slow as a result. But the gameplay was fascinating. We will no doubt see more things like this in future as LLMs get faster; it's an obvious application for open source software.

Re: Show HN: I built an AI that turns any book into a text adventure game

#95
post #44

From what I've seen, it doesn't seem like AI is very good at keeping track of events in a way that makes a logical narrative. I tried "The Hobbit" and it started with me having tea with Gandalf the wizard. There was a knock at the front door so I opened it and outside was Gandalf the wizard!

I built my own LLM-based interactive text adventure system last year, but in addition to LLMs, it used an auxiliary database to keep track of where everything was, what state it was in, and so on. The LLM thus did two things: first, it used a combination of the prompt, the user input, and the recent history of the chat and relevant extracts from the database state, to update the database with a new state; then after…

Fascinating that you actually went through with an implementation. I’ve been throwing the idea of LLMs somehow having a sat solver built into them (maybe trained to have one as an emergent property), but something like you describe is the next best thing.

Re: Show HN: I built an AI that turns any book into a text adventure game

#96

Kafka's Trial or The Castle could be interesting.

I was thinking Agatha Christie’s The Murder of Roger Ackroyd or Ford Madox Ford’s The Good Soldier. Having an unreliable narrator running the adventure story would play right into the inability of the LLM to effectively hold state.

Re: Show HN: I built an AI that turns any book into a text adventure game

#97
In spite of what some others have said, and knowing we have 2025 and AI, I still was rather impressed and pleased with this. I tried to play an evasive hobbit trying to put off Gandalf and the dwarves, but still they insisted. I find this hilarious.

Re: Show HN: I built an AI that turns any book into a text adventure game

#98
I found the post [0] to be a really interesting read, and as one susceptible to solipsism and the simulation hypothesis, this paragraph hit me hard:

> My biggest difficulty was getting ChatGPT to understand the constraints of the game. It may have been harder because an LLM’s constraints are so close to a text adventure, and it is used to imagining something less constrained; like it couldn’t distinguish between its dream-state and the actual medium in which it exists.

[O] https://ianbicking.org/blog/2025/07/intra-llm-text-adventure

Re: Show HN: I built an AI that turns any book into a text adventure game

#99
Wouldn't a better version be to take a book and parse the contents into a LLM and create a multiple choice quiz that follows the story of the book? I feel like as soon as you let LLM take the wheel and change the underlying story it's bound to go on a weird tangent.

I tried something like this before and it was a cool way to read a new book or study classics. It would read a few lines of, say, War and Peace, to me, and I would be given 3 choices of what comes next. The options were always quite varied and made you think more about the characters and what they would be likely to say in the context.

You could also just use it for non-fiction to quiz-ify contents for studying. Although that doesn't require the text to continue flowing after each question.

Edit: Nevermind. Just seen the canon game mode

Post reply on HN