[freeciv-ai] Re: (PR#9021) AI data gets obsolete
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|