Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Lenovo says it’s supporting the Legion Go first gen until 2029

    Enjoy portable productivity with a Microsoft Surface Pro 6 — just $230

    Make confident investing decisions with built-in guidance from this $69 tool

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      What the polls say about how Americans are using AI

      February 27, 2026

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026
    • Business

      FCC approves the merger of cable giants Cox and Charter

      February 28, 2026

      Finding value with AI and Industry 5.0 transformation

      February 28, 2026

      How Smarsh built an AI front door for regulated industries — and drove 59% self-service adoption

      February 24, 2026

      Where MENA CIOs draw the line on AI sovereignty

      February 24, 2026

      Ex-President’s shift away from Xbox consoles to cloud gaming reportedly caused friction

      February 24, 2026
    • Crypto

      Palladium Price Approaches a Critical Turning Point

      February 28, 2026

      Trump to Takeover Cuba, Iran War Tensions Rise, Bitcoin Crashes Again

      February 28, 2026

      A 40% XRP Crash Couldn’t Shake Its Strongest Holders — Is $1.70 Still Possible?

      February 28, 2026

      Why Is the US Stock Market Down Today?

      February 28, 2026

      SoFi Becomes First US Chartered Bank to Support Solana Deposits

      February 28, 2026
    • Technology

      Lenovo says it’s supporting the Legion Go first gen until 2029

      February 28, 2026

      Enjoy portable productivity with a Microsoft Surface Pro 6 — just $230

      February 28, 2026

      Make confident investing decisions with built-in guidance from this $69 tool

      February 28, 2026

      Anthropic vs. The Pentagon: what enterprises should do

      February 28, 2026

      OpenAI strikes a deal with the Defense Department to deploy its AI models

      February 28, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Automating Interactive Fiction Logic Generation with LLMs in Emacs
    Technology

    Automating Interactive Fiction Logic Generation with LLMs in Emacs

    TechAiVerseBy TechAiVerseMarch 31, 2025No Comments2 Mins Read6 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Automating Interactive Fiction Logic Generation with LLMs in Emacs
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Automating Interactive Fiction Logic Generation with LLMs in Emacs

    summary: I automated the creation of transaction tracking logic for an Emacs-based interactive fiction book using an LLM (via gptel).

    I have been writing an interactive children’s book in Emacs where the protagonist Daphne earns, saves or spends money during her weeklong entrepreneurial adventure. The passages in my book are organized as follows:

    Since a reader may arrive at a passage from multiple routes, every passage includes some code to track transaction amounts, amongst other parameters. Using this code, I’m able to show the reader Daphne’s cash balance at any point in the book.

    After writing 34 passages, I realized I could enhance the book’s educational value by showing how Daphne’s cash balance was calculated. This new feature would require modifying the code in every passage to include the context of the transactions. Hard to imagine now, but there was a time when implementing the feature would require tediously editing the code in every passage. To explore a more efficient solution, I turned to an LLM via the gptel package for Emacs.

    Here’s how I added the context of the transactions to every passage: I select the entire story, which is a single org file in Emacs, with C-x h, invoke gptel-rewrite with C-u C-c r RET d, then type out the following descriptive prompt:

    The selection is a series of passages, each passage falls under an org heading. each passage has a source code block. update the source code blocks to include a json object, cashOperations, that tracks the change in cash in the corresponding passage. The json object contains the following keys: "operation", "amount" and "description". "operation" can be "add" or "subtract", "amount" is the change in cash amount (positive value), and description is a string of 3-5 words that describes the reason for the change in cash. Only append the cashOperations object if there has been an event or action to change the cash amount even if the net change is zero.

    I follow up with RET r and wait.

    Your browser does not support the video tag.

    I now have the context to implement an arithmetic explainer option.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleWarner Bros Completes Worldwide Sale of ‘Coyote vs Acme’
    Next Article Microsoft restates commitment to OpenAI amid analyst note about datacentre expansion rollbacks
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Lenovo says it’s supporting the Legion Go first gen until 2029

    February 28, 2026

    Enjoy portable productivity with a Microsoft Surface Pro 6 — just $230

    February 28, 2026

    Make confident investing decisions with built-in guidance from this $69 tool

    February 28, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025698 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025280 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025162 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025122 Views
    Don't Miss
    Technology February 28, 2026

    Lenovo says it’s supporting the Legion Go first gen until 2029

    Lenovo says it’s supporting the Legion Go first gen until 2029 Image: Mattias Inghe Summary…

    Enjoy portable productivity with a Microsoft Surface Pro 6 — just $230

    Make confident investing decisions with built-in guidance from this $69 tool

    The Warner Bros. acquisition: a timeline of events so far

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Lenovo says it’s supporting the Legion Go first gen until 2029

    February 28, 20262 Views

    Enjoy portable productivity with a Microsoft Surface Pro 6 — just $230

    February 28, 20262 Views

    Make confident investing decisions with built-in guidance from this $69 tool

    February 28, 20260 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    Best TV Antenna of 2025

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.