When CivilizationTM IV (Firaxis Games, published by Take2) was announced, one of the most exciting features was that much of the scripting code will be in python, and the game data in XML. This tutorial attempts to teach you the basics of python programming that you could use with civIV.
Of course, this tutorial is not limited to those who want to play a slow-paced turn-based strategy game. That is what it was written for, but is perfectly useful to any person with no programming knowledge at all, who wants to learn python. But what makes this tutorial unique, is that it is written for beginners, by a beginner.
|Very Simple Programs|
|Variables, and Programs in a Script|
|Loops and Conditionals|
|Tuples, Lists, and Dictionaries|
|The for loop|
Then we also have the (to be written) Civilization IV python introduction. It will begin its release in early November.
|Introduction to Civilization IV python (not released yet)|