[Freeciv-Dev] Re: (PR#10127) AI does not build either farmland or Superm
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10127 >
Per I. Mathisen wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10127 >
>
> The AI building code checks for the presence of farmland to see if it
> should build a Supermarket. The AI terrain improvement code checks for the
> presence of a Supermaket to see if it should build a farmland. Not
> surprisingly, it ends up never building either farmland or Supermarket.
>
> Both codes use rather general functions to do the checking, so one place
> we have to add in some extra code with some wild guesses, perhaps based
> on the amount of existing irrigation or the city's need for food or its
> production capacity. I am not sure which code should be responsible for
> anticipating the actions of the other.
A similar problem is that there's no incentive to build hoover dam until
sufficient factories are constructed.
The more exact our calculations are the more careful we have to be not
to fall into these dependency loops.
jason
|
|