Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2002:
[freeciv-ai] Re: active ai diplomats

[freeciv-ai] Re: active ai diplomats

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Cc: Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: active ai diplomats
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 2 Sep 2002 02:29:36 +0000 (GMT)

On Sun, 1 Sep 2002, Gregory Berkolaiko wrote:
> > This is a possibility, and better since it evaluates military benefits,
> > which is what really should be doing, but it sounds rather complex. Can
> > you show me in pseudocode how youwould accomplish this?
> unit_type_id att = find_best_attacker_for(acity);
> int loss = estimate_casualties_when_sieging(acity, att);
> loss *= 2 * unit_types[att].build_cost;
> incite_desire = loss * SHIELD_WEIGHTING - incite_cost * TRADE_WEIGHTING;

Not bad, not bad. I like that.

However, I am planning to commit the active diplomat patch very soon
nevertheless, with my much simpler calculation, since having too many big
open AI patches slows down the cleanup work too much.

Can you make a patch implementing the above against cvs after I have
committed it?


"I don't see why people are so upset about cloning sheep. American
television networks have been doing that to their audiences for years."
-- Jello Biafra

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