Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] Re: (PR#14923) Stupid AI Building Wants
Home

[Freeciv-Dev] Re: (PR#14923) Stupid AI Building Wants

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14923) Stupid AI Building Wants
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Dec 2005 13:10:50 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14923 >

Peter Schaefer wrote:

>>The want for the protection that city walls afford the civilians inside
>>(EFT_UNIT_NO_LOSE_POP effect) depends on the number of units in the
>>city, which makes no sense to me. The effect is most useful for very
>>small cities, which are in danger of being destroyed because of civilian
>>casualties.
> 
> On the other hand, a small city is not worth as much in some respect,
> unless you think of the cities it protects by offering a first line of
> defense. However it seems to me the AI is unable to detect threatened
> cities and builds city walls everywere instead - one problem is that
> detecting outer cities is a CPU-intensive operation of at least O(n^2)
> unless you do some complicated algorithm.

IIRC a city will never be destroyed by attacks unless it is actually 
conquered, so destruction is not an issue.  Cities with large sizes have 
more valuable citizens because each one is harder to replace.

-jason





[Prev in Thread] Current Thread [Next in Thread]