Complete.Org: Mailing Lists: Archives: freeciv-ai: April 2003:
[freeciv-ai] Re: Question on find_boat
Home

[freeciv-ai] Re: Question on find_boat

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: Question on find_boat
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 1 Apr 2003 06:47:55 +0000 (GMT)

On Tue, 1 Apr 2003, Jordi Negrevernis i Font wrote:
>   I'm programming the code required to transport an army ( or part )
> from a continent to another to attack a city. I'm having difficulties in
> finding the right way to use find_boat, as done in settlers.c. The ships
> full of troups flip-flop going out of the city and entering afterwards.
>
>   I looked to the code of that function and it seems that is not
> checked if someone is allready using that ship!!!
>
>   Which is the way to use boats with no passengers?

I wish I could tell you, but this top secret code :-)

I don't know how it works, and to be honest, I kind of doubt that even the
guy who originally wrote it knew exactly how it worked.

This is _the_ really big hurdle now for making significant progress on the
AI. The correct thing to do is to throw out the existing ferry code and
write a new one.

Sorry, but I really suggest that is where you start. I and Greg have been
talking a little about how to implement such a new ferry system, but
neither of us have produced any working code. This should change now that
pf is in.

Greg - have you given this topic more thoughts since last time we spoke
about this?

  - Per



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