Complete.Org:
Mailing Lists:
Archives:
freeciv-ai:
February 2004: [freeciv-ai] (PR#6567) AI has too many boats. |
[freeciv-ai] (PR#6567) AI has too many boats.[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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.
ferry3.patch
ferry3-ezread.patch
|