Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Comments on CMA 2.6
Home

[Freeciv-Dev] Re: Comments on CMA 2.6

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Comments on CMA 2.6
From: Jason Dorje Short <vze2zq63@xxxxxxxxxxx>
Date: Wed, 24 Oct 2001 13:43:13 -0400
Reply-to: jdorje@xxxxxxxxxxxx

Daniel L Speyer wrote:
> 

> Maybe this is getting too complicated, but wouldn't it be better if the
> CMAs took into account the reachability of squares from other cities?  I
> mean, if you are on the corner of a continent, so that only you can use
> the whales offshore, but there's also silk nearby, and the player doesn't
> care about food, it's still better to pick the whales.
> 
> Maybe that's just to much, though.

The way to do this is to calculate the possible use another city could get
from such a tile, and include it in the calculation directly.

If a tile is in use from another city, assign a "value" to that tile.  This
"value" becomes a fourth element of the optimization function (in addition
to food/production/trade), with its own weight.  The weight can either be
set by the user or can be fixed to some very small value so that it's only
used as a tiebreaker.

The "value" a tile gets for this element could either be 0 versus 1 (not
usable by another city vs usable by another city) or X (where X is the
number of other cities who can use the tile).

This would probably be the best solution.  But can the "value" be easily
calculated?  Can you easily determine what other cities are in range of a
given tile?

jason


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