Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
Re: [Freeciv-Dev] PATCH: AI governments
Home

Re: [Freeciv-Dev] PATCH: AI governments

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rizos@xxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] PATCH: AI governments
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Tue, 6 Jul 1999 19:51:12 -0400

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/ |

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