Complete.Org: Mailing Lists: Archives: freeciv-ai: February 2004:
[freeciv-ai] (PR#6567) AI has too many boats.
Home

[freeciv-ai] (PR#6567) AI has too many boats.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxxx
Subject: [freeciv-ai] (PR#6567) AI has too many boats.
From: "Joshua Hudson" <joshudson@xxxxxxxxxxx>
Date: Sat, 7 Feb 2004 19:00:01 -0800
Reply-to: rt@xxxxxxxxxxx

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

> 
> Patch #1:
> Make city_has_other_boats function which checks, well, if a city has 
> other boats, so our one can go off exploring.  Use this function to send 
> the boat exploring even if it's in a city.  This will help solve current 
> and future clustering problems.
> 
> Patch #2:
> Introduce need_boat field.  Comment it (see CodingStyle for directions).
> Add your "looking for a city that needs me" code to ai_manage_ferryboat.
> 
> Patch #3:
> Change the rest of ai_manage_ferryboat to introduce the while loop. 
It is 
> a good idea, but it can wait, it only makes sense if a boat needs to 
> deliver more than one passenger in one turn -- a rare if not 
> currently impossible situation.
> 

Did patch #3 first to make code simpler. There are two versions of
the patch here. apply ferry3.patch. ferry3-ezread.patch is a diff
of the same sources, but with the -bB options to hide the indentation
change required by inserting the loop so that the patch can be checked
more easily.

Attachment: ferry3.patch
Description: Binary data

Attachment: ferry3-ezread.patch
Description: Binary data


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