Being a horrible code-junkie (or would that be code-duckie?), I could not resist the urge to look up the code-ish questions you ask in your report.
With regards to religion spread: As far as I can tell, the only factors that affect chance of religion spread are straight line distance from holy city (nearer == better chance) and presence of shrine in holy city (2X chance). Also, the two cities have to be "connected", but I haven't quite been able to figure out what constitutes "connected", because that uses proprietary path-finding stuff for which Firaxis doesn't seem to have provided the code. However, connection is a yes/no factor, either the cities are connected or they aren't. In the Cuban Isolationists game, I remember reading about them finding religion that had spread to people they hadn't even met, so the "connected" criteria is probably pretty relaxed.
With regards to tied UN votes: Whichever player happens to be first on the game's list of players gets to be a candidate. I think that the player is first on this list, so that they would always win ties. Otherwise, whoever happens to have been picked for the game first is the lucky AI.
With regards to religion spread: As far as I can tell, the only factors that affect chance of religion spread are straight line distance from holy city (nearer == better chance) and presence of shrine in holy city (2X chance). Also, the two cities have to be "connected", but I haven't quite been able to figure out what constitutes "connected", because that uses proprietary path-finding stuff for which Firaxis doesn't seem to have provided the code. However, connection is a yes/no factor, either the cities are connected or they aren't. In the Cuban Isolationists game, I remember reading about them finding religion that had spread to people they hadn't even met, so the "connected" criteria is probably pretty relaxed.
With regards to tied UN votes: Whichever player happens to be first on the game's list of players gets to be a candidate. I think that the player is first on this list, so that they would always win ties. Otherwise, whoever happens to have been picked for the game first is the lucky AI.
-kcauQ -kcauQ