Complete.Org: Mailing Lists: Archives: freeciv-ai: June 2004:
[freeciv-ai] Re: Stop ferries from yoyo-ing between cities
Home

[freeciv-ai] Re: Stop ferries from yoyo-ing between cities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per Inge Mathisen <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: Stop ferries from yoyo-ing between cities
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Mon, 14 Jun 2004 05:35:32 -0500 (CDT)

On Sun, 13 Jun 2004, Gregory Berkolaiko wrote:

> On Sun, 13 Jun 2004, Per Inge Mathisen wrote:
>
> > The reason the patch is fixing something, is that the weighting in
> > ai_ferry_find_interested_city() is rather weird, and makes ferries way too
> > eager to travel around to find the supposedly "optimal" place to be.
> >
> > Another patch might actually be
> >
> > - if (turns >= turns_horizon) {
> > + if (turns + pos.turn >= turns_horizon) {
> >     UNIT_LOG(LOGLEVEL_FERRY, pferry, "%s is NOT suitable: "
> >
> > to punish travelling more.
>
> Yes, the behaviour like you describe below is possible.  I think the patch
> above is good and you should commit it if you want.

Of course when turns_horizon is reset it should be reset to
  turns + pos.turn

G.



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