This is amazing. I'm a beginner programmer and I haven't come close to making anything like this yet. It would be interesting to incorporate co-operation style in the weighted military strength of a polity tile and its likelihood of disintegration.
The Journal for Artificial Societies and Social Simulation published this interesting co-operation simulation a few years back.
https://egtheory.wordpress.com/2013/06/30/how-ethnocentrics-rule/
RE: A Random World History Simulator Part 2