[freeciv-ai] Re: ai bug when splitting up settlers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, May 13, 2002 at 02:35:36PM +0200, Per I. Mathisen wrote:
> On Mon, 13 May 2002, Raahul Kumar wrote:
> Syela's general idea is correct - we should calculate the benefit a
> new city can give us.
> > We could build workers based on the minimap idea you had. The workers we
> > need
> > is based on no of umimproved tiles in city radiuses, the amount of time it
> > would take the workers we currently have to improve them, aargh it gets hard
> > already.
>
> Yes, it becomes hard. The above is about the same approach as Syela chose.
I also think that this is the correct approach. You have to calculate
how much you would gain from an extra worker. A fast approximation
would to virtually allocate the not yet produced worker to the city
tile which will improve the most and compare the costs (shields, time
to produce, time to improve) with the benefit (extra production of the
tile, an extra worker (in the worst case it is still worth half the
production shield)). If this turns out negative and also the same
checks for all the near cities you shouldn't build the worker. This is
an approximation because the best tile may be allocated and so
improved before the unit is produced. You can now make a more detailed
calculation which tiles can be improved in n turns (where n is the
number to build the unit) but this may be hard.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Python is executable pseudocode. Perl is executable line noise"
-- Bruce Eckel
- [freeciv-ai] ai bug when splitting up settlers, Per I. Mathisen, 2002/05/12
- [freeciv-ai] Re: ai bug when splitting up settlers, Per I. Mathisen, 2002/05/12
- [freeciv-ai] Re: ai bug when splitting up settlers, Per I. Mathisen, 2002/05/12
- [freeciv-ai] Re: ai bug when splitting up settlers, Raahul Kumar, 2002/05/13
- [freeciv-ai] Re: ai bug when splitting up settlers, Per I. Mathisen, 2002/05/13
- [freeciv-ai] Re: ai bug when splitting up settlers,
Raimar Falke <=
- [freeciv-ai] Re: ai bug when splitting up settlers, Ross W. Wetmore, 2002/05/14
- [freeciv-ai] Re: ai bug when splitting up settlers, Raimar Falke, 2002/05/15
- [freeciv-ai] Re: ai bug when splitting up settlers, Ross W. Wetmore, 2002/05/15
- [freeciv-ai] Re: ai bug when splitting up settlers, Raimar Falke, 2002/05/16
- [freeciv-ai] Re: ai bug when splitting up settlers, Ross W. Wetmore, 2002/05/16
- [freeciv-ai] Re: ai bug when splitting up settlers, Raimar Falke, 2002/05/17
- [freeciv-ai] Re: ai bug when splitting up settlers, Ross W. Wetmore, 2002/05/17
- [freeciv-ai] Re: ai bug when splitting up settlers, Raimar Falke, 2002/05/18
- [freeciv-ai] Re: ai bug when splitting up settlers, Ross W. Wetmore, 2002/05/18
- [freeciv-ai] Re: ai bug when splitting up settlers, Raimar Falke, 2002/05/18
|
|