Maybe some sort of AI-powered D&D DM; the rules of the game would be hard coded, but the AI would determine how the rules are applied and how they fit into the story based on text input from the players, results of dice rolls, etc. (E.g. If the AI were to end a sentence with "Roll for initiative" then the hard-coded bit of the game would have everyone roll initiative and feed the results back into the AI.)