This article was published for PREMIUM members, available by subscription. You can join here in a minute or less. If you're already a member, log-in from the top right menu.

Premium Teaser

A Diplomatic Analysis of the AI in Civilization 4’s SDK

Alex J. Champandard on February 13, 2014

How would you create an AI for a strategy game with a layer of diplomacy? In this tutorial in case-study style, you'll see the AI behind Firaxis' classic, Civilization 4. Digging into the SDK reveals some insights on how to structure the code, as well as specific tips on programming techniques. You'll learn about good practices from the code itself, and how to make improvements to the code to increase robustness and flexibility.