Complete.Org: Mailing Lists: Archives: freeciv-ai: June 2004:
[freeciv-ai] Re: (PR#9021) AI data gets obsolete
Home

[freeciv-ai] Re: (PR#9021) AI data gets obsolete

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#9021) AI data gets obsolete
From: "Per Inge Mathisen" <per@xxxxxxxxxxx>
Date: Fri, 18 Jun 2004 14:37:50 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9021 >

On Fri, 18 Jun 2004, Jason Short wrote:
> > AI data is initialized every turn before anyone does anything.This is
> > necessary because the diplomacy phase, which comes first, needs fresh data.
> >
> > However, by the time an AI player gets to manage_units, the data is
> > already obsolete as other players could have taken our cities and killed
> > our units.
> >
> > Should we do anything about it?
>
> Re-initialize it?

Certainly not all of it. The only thing I can think of right now that
should be recalculated is the danger variables. They can be moved into
their own function, and called separately twice in a turn, perhaps.
Although I don't think they are used before turn end anyway.

  - Per




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