Page 1 of 1

Euclidean citymindist

Posted: Thu Oct 25, 2018 12:02 pm
by yojimpo
I'd like to see an option to calculate citymindist using Euclidean distance instead of Chebyshev distance. This would allow for better optimized diagonal city placement. For example with citymindist = 4, you'd get 3 spaces straight, 2 spaces diagonally between cities.

Re: Euclidean citymindist

Posted: Mon Oct 29, 2018 12:22 pm
by nef
Any chance you have been playing ci2civ3? With citymindist = 3 it is possible to have 'holes' of up to 4 tiles where you can not build a city but are also inaccessible to all nearby cities. Most distances in fc are expressed as *_sq which works quite well although there does appear to be some anomalies for larger distances. See http://freeciv.wikia.com/wiki/Radius. Not keen on having it as an option. The unsquared citymindist is past its best-by-date and should be replaced by citymindist_sq.