Live data from Hacker News

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

kathaaverse.com

41–50 of 115 posts

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

#41
This is cool! I've recently been working on a similar project as a way to "walk around" in my own writing, understand my characters more, etc. I like the three-choice mechanism, with free-text, which I also use.

I do feel like, as a reader, I would have to be really desperate to "live within" the world of a novel to use it as a narrative experience, but I understand that there is definitely a demand / desire for that sort of thing, so I hope it hits for people.

I input my own novel's title to see if I could do the same. That novel hasn't yet - I believe - been libgenned for "training" by the major LLM providers, though its metadata / marketing materials exists in the knowledge (released fairly recently, announced longer ago). It resulted in a very funny narrative beginning in which the main character was the novelist Patricia Highsmith, which I think was a name used in the marketing materials as a reference point. A very surreal experience.

This is going to be a niche use case, obviously, but what might be more common is for users desiring to enter custom narratives (though I know some services provide this basic function already).

A much more important bug to flag: where the API fails, the "Try Again" button doesn't seem to resend my prompt, but literally the prompt "Try Again". Here's the text, as I couldn't see a way to link to the story (in which I was trying to see how good the 'guardrails' are for keeping the story in-universe and reasonable - props for it not allowing me to teleport to planets outside of the canonical universe).

https://pastebin.com/tjT2zR4R

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

#42

Well done! I’ve built this same sort of thing for my family to play with. My advice for the best results: 1) Structure the choices offered by the LLM; add “choice_type” and add instructions to the LLM on what those choices should do. E.g. action, dialogue, investigation, whatever makes sense for the genre—the LLM can even generate these at story start—then “choice should direct the narrator to focus on an action-orie…

How do you come up with this? I feel it is quite hard to formulate exactly what you want from the LLM in general. Is this something you exercised? So good. Or just output from another AI, who knows haha

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

#43
post #32

I'm curious what happens if you throw something like Ulysses by James Joyce at it.

It would probably just switch perspective with each chapter. If the AI has any real grasp of literary devices something metafictional like City of Glass could be interesting but an earlier/less complex example of metafiction like Marshlands might work better? If my memory serves I think the metafictional aspects of Marshlands could translate into this even if the AI completely misses the metafiction. Might play with this when I have more time.

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

#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!

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

#45
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!

Well, he is a wizard

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

#46
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!

Seems on point for AI.

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

#47
post #22

How do tools like this avoid what I see in many of these types of narrative chat bots: the user becomes the only one steering the narrative, and the AI ends up just an obedient responder? Whenever I try these things it ends up very predictable, shallow, and repetitive, especially as time goes on. And if I have to prompt the AI to be creative or act differently... is that really acting different?

I went to some lengths to ground the action in my game: https://ianbicking.org/blog/2025/07/intra-llm-text-adventure

That said, I think there's a lot of prompting techniques that can help here. (Actually the Guided Thinking section is an example of prompt-only techniques: https://ianbicking.org/blog/2025/07/intra-llm-text-adventure...)

You must at least do some pre- and post-processing to have the LLM consume and generate text that isn't part of the main user interface. But given that you can put in guidance that can increase the small-scale surprise of the interaction. For instance I'll have the LLM write out some of the objective environment at the moment before it considers a decision, so that it doesn't essentially retcon the setup for a plot direction it intends to take.

For the larger arc you'll need something like memory to pull the whole thing together. That include repetition over time. You can ask the LLM not to repeat itself, and it can do that, but only if it understands what it's done. And to some degree it needs to understand what it's _doing_: the LLM like the player is still generating short turns, and so if it wants to create surprise that is revealed over multiple turns then it needs space to plan ahead.

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

#48
I do not want AI slop games.

The entire point of paying for an (indie) man-made game is the care and attention that went into it by passionate developers who wanted to convey a story.

The cheap, industrial, soulless output of LLMs is not something I care to consume.

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

#49
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 wouldn't be surprised if, being Bilbo, Gandalf would troll me like that, just to prove a point he's trying to make.

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

#50
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!

of course, it didnt have context lengthy enough for that

I mean human sometimes forgot about the state inside the game often

Post reply on HN