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.Show HN: I built an AI that turns any book into a text adventure game
91–100 of 115 posts
Re: Show HN: I built an AI that turns any book into a text adventure game
#92From 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!
Re: Show HN: I built an AI that turns any book into a text adventure game
#93Re: Show HN: I built an AI that turns any book into a text adventure game
#94From 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!
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
#95From 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…
Re: Show HN: I built an AI that turns any book into a text adventure game
#96Kafka's Trial or The Castle could be interesting.
Re: Show HN: I built an AI that turns any book into a text adventure game
#97Re: Show HN: I built an AI that turns any book into a text adventure game
#98> 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
#99I 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