On Wed, 2009-04-01 at 21:13 -0600, Sean Hunt wrote:
> The formula is designed to require a sufficient number of players to
> pass the proposal with everyone else voting AGAINST. Remember that the
> initiator of the action cannot support; therefore with even three active
> players, a proposal with adoption index 2 would normally require 2 votes
> (2:1): floor((2*3)/(2+1)) = 1.
Actually, = 2, your arithmetic is wrong.
> 
> If you can find another bug, I'd appreciate you pointing it out.

Dependent actions often end up buggy in some way. (They turned out not
to be broken last Holiday, for instance, but there was certainly some
weirdness going on, real or perceived.)

Unrelated to the formula, I'm also a bit confused about the timing
related to whether there's a "vote" ongoing or not.

Finally, you should insert a safety check for if the AI somehow becomes
less than 1. (I don't think that's possible under present rules, but you
never know what might happen in the future.)

-- 
ais523

Reply via email to