The turn is what the entire game is based around. During any given turn your AI will have to determine what is best for your city at that time. This consists of:
After the turn is processed, the game determines whether or not a disaster will occur after the turn, adjusts the odds accordingly, and feeds your AI the info for the next turn.
The order of operations is the following:
The game determines which disasters are occurring for the current turn.
The player’s decree from the previous turn is activated, reducing the damage of the current disaster if applicable.
The sensors will detect the odds for the next turn.
The player’s AI take_turn function goes into effect, where the AI will decide on effort allocations for the current turn and the decree for the next turn.
The player’s effort allocations are put into effect. See the effort page for the order effort allocations are processed.
The player’s decree is recorded for the next turn.
Disasters will be removed from the city if enough effort has been allocated.
Disasters will strike.
If the city has 0 or less population or structure, then the game will end.