The ability to model a local political-economy has been around for a long time: SimCity does as good a job as one can expect given their limitations and methodology. And since,On January 10, 2008 the SimCity source code was released under the free software GPL 3 license under the name Micropolis. that's where I'd start my research. If I was going to do something ... which I'm not¹.
On January 10, 2008 the SimCity source code was released under the free software GPL 3 license under the name Micropolis.
How clean is the SimCity codebase?