Automating Interactive Fiction Logic Generation with LLMs in Emacs

Summary: The author automated transaction tracking logic for an Emacs-based interactive children’s book where Daphne earns, saves, or spends money during her entrepreneurial adventure. To show the reader Daphne’s cash balance at any point, the author added code to every passage. Realizing the educational value, the author sought a more efficient solution by using an LLM (via gptel) to update the code in every passage. By following specific steps, the author included a json object to track cash changes in each passage. The process streamlined the addition of context to the transactions and ultimately led to implementing an arithmetic explainer option in the book.

https://blog.tendollaradventure.com/automating-story-logic-with-llms/

To top