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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [freeciv-ai] Re: (PR#6567) AI has too many boats.
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Sun, 22 Feb 2004 14:13:02 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Sat, 21 Feb 2004, Joshua Hudson wrote:

> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=6567 >
> 
> Oh, here's the rest of it.

1. Logic
+    if (!pcity->ai.choice.need_boat && !pcity->is_building_unit
+               && !unit_has_role(pcity->currently_building, L_FERRYBOAT)) {
+      continue;
+    }
is flawed.  Aligment is also flawed.

2, Convert really_needed to bool.  Keep it as local as possible

3. Don't let other players' boats deter us from going to the city that 
needs us.

4. We will look for nearest friendly city even if we are currently in one.

Please fix and resubmit.

G.




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