Civilization IV
3 projects, 1 with public code: source release.
Projects
The Dawn of Civilization mod for Civilization IV: Beyond the Sword, based on the popular Rhye's and Fall of Civilization mod.
GitHub
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…
What you need
You need your own copy of the game: these projects ship code only.
Agent environments
More on PC
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
GitHub data checked 2026-10-12. Notes are summaries from the research pass; the project pages are the authority.