Civilization IV
Civilization IV (PC, 2005) has an official source code release, dguenms/Dawn-of-Civilization, and 3 other public projects, including an open-source reimplementation. An agent environment already wraps it.
Projects
The Dawn of Civilization mod for Civilization IV: Beyond the Sword, based on the popular Rhye's and Fall of Civilization mod.
Clean-room x64 engine reimplementation for Sid Meier's Civilization 4
Firaxis shipped full CvGameCoreDLL C++ source (game rules + AI) and Python; mods like K-Mod/AdvCiv build on it
Wikipedia: source-available (non-OSI license and/or partial SDK code); source released 2006 (partly) by/for Firaxis Games / 2K Games. In April 2006 the developers released the source code of the core game mechanic to the public with a Soft…
Missing a project, or something wrong here? Suggest a project · Report a fix
What you need
You need your own copy of the game: these projects ship code only.
Agent environments
More on PC
How this page was made
Every repository here was checked against GitHub on 2026-11-23 for existence, stars, licence and last push.
Found via en.wikipedia.org/wiki/Civilization_IV, Quick-AI-LLC/civ4-hermes-opponent, en.wikipedia.org/wiki/List_of_commercial_video_g, gamasutra.com/view/news/99858/Product_2K_Games_F, 2kgames.com/civ4/downloads.htm.
Each project's description is its own, or a summary written during research; the project's own page is the authority.