AI for IF games – question about different kinds of IF games

You might find pages 2 and 3 of this thread about automated testing of glulx and zcode games from a python script using glulxe+remglk (glulx) and fizmo+remglk (zcode) to be helpful. The same approach that the test script uses to send game input to and receive game output from a remote interpreter process could be used by your AI controller.