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: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Comments on CMA 2.6
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Oct 2001 20:07:14 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Wed, Oct 24, 2001 at 01:43:13PM -0400, Jason Dorje Short wrote:
> 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?

Yes. A city_map_checked_iterate centered at the given tile.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 BSD: Are you guys coming or what?


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