[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]
<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
/* 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.