Euclidean citymindist

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Posts: 1
Joined: Thu Oct 25, 2018 11:06 am

Euclidean citymindist

Postby yojimpo » Thu Oct 25, 2018 12:02 pm

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.

Posts: 139
Joined: Mon Jun 25, 2018 5:01 pm

Re: Euclidean citymindist

Postby nef » Mon Oct 29, 2018 12:22 pm

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 Not keen on having it as an option. The unsquared citymindist is past its best-by-date and should be replaced by citymindist_sq.