Re: [Freeciv-Dev] PATCH: AI governments
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
rizos@xxxxxxxx (rizos@xxxxxxxx) wrote:
> As i wrote last month, the main criterion for a government change is
> the maximization of the quantity (3*trade_prod + 2*shield_surplus)/5.
This is mathematically equivalent to maximizing the quantity
(3*trade_prod + 2*shield_surplus). There's no need to divide by 5; and
removing that division from the code will make it ever-so-slightly faster.
--
Greg Wooledge | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |
|
|