[freeciv-ai] Re: active ai diplomats
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
"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