Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2004:
[freeciv-ai] Re: (PR#9846) AI should count other players in it's territo
Home

[freeciv-ai] Re: (PR#9846) AI should count other players in it's territo

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [freeciv-ai] Re: (PR#9846) AI should count other players in it's territory
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 28 Aug 2004 10:52:05 -0700
Reply-to: rt@xxxxxxxxxxx

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

On Sat, 28 Aug 2004, Mateusz Stefek wrote:
> This is improved version of James Camente's patch in PR#9006.
> I think it's better to count units of allies too, because AI is too naive.
>
> I have tested it. With 3 units in ally's territorylove is about 50
> (Enthusiastic)

    /* Reduce love by number of units in our territory.
+     * AI is so naive, that we have to count it even if players are allied */
+    pplayer->ai.love[aplayer->player_no] -=
+      MIN(player_in_territory(pplayer, aplayer),
+          pplayers_allied(aplayer, pplayer) ? 10 : BIG_NUMBER);

BIG_NUMBER here is pretty dumb. Use some lower and more sensible number
instead, like, say, 50.

  - Per




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