Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12734) A new, fast and greedy CM implementation
Home

[Freeciv-Dev] Re: (PR#12734) A new, fast and greedy CM implementation

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#12734) A new, fast and greedy CM implementation
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 7 Apr 2005 00:36:10 -0700
Reply-to: bugs@xxxxxxxxxxx

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

On Wed, 6 Apr 2005, Benoit Hudson wrote:
> On Wed, Apr 06, 2005 at 04:13:49PM -0700, Jason Short wrote:
> > We should already change the interface a bit to allow partial
> > placements (placement of one new worker without redistributing
> > any existing ones).
>
> I'll code this up.I think the interface should be to add
> /* don't rearrange these workers */
> struct {
>   bool workers[CITY_MAP_SIZE][CITY_MAP_SIZE];
>   int specialists[SP_COUNT];
> } fixed;
> to the cm_parameter.

From my memory of its likely usage, I think it would be better to tell CM
to redistribute N specialists of type S - in default's case N elvises.
Whenever we add a citizen, we add an elvis, then rearrange. Whenever a
unit bounches off a citizen from a tile, it becomes an elvis, then we
rearrange. And so on. The suggestion above is a bit heavyweight on the
preprocessing stage, IMHO.

  - Per





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