I've always been a big fan of the Civ games, and was always frustrated at how terrible the AI was. So I got curious about whether LLMs could play Civ well, or not! I thought about having the agents interact with the GUI directly, but something about that seemed like the wrong approach. For one thing, it seemed to me like images would cost way more in tokens. For another, LLMs seem like a different kind of intelligence from humans, so why would an interface meant for humans be optimal for them?
Anyway, I spend a few weeks modifying Unciv [0], an open-source reimplementation of Civ V to have the right endpoints and views for an agent to be able to play civ in the same way a person could. You can see the first game running at the link. So far, it looks like the GPT models are able to play a reasonable game - definitely better than the built-in AI, which was my barometer for success! You can find the harness here: https://github.com/varchasgopalaswamy/unciv-ai. Let me know what you folks think!