Complete.Org: Mailing Lists: Archives: freeciv-ai: January 2004:
[freeciv-ai] CM and celebration

[freeciv-ai] CM and celebration

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] CM and celebration
From: Benoit Hudson <bh@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2004 16:54:37 -0500

When you put a high premium on celebration in the CMA (which for me is
always), cities of size 2 will often use one citizen as an entertainer
and thus have 1 happy and 1 entertainer, which is a majority of happy.
But cities of size 2 can't be in celebration (at least in the default

What's the correct way to deal with this issue?  None of the functions
in city.c address that.  "city_happy", which is what we call, just
checks for a majority of citizens being happy (regardless of number).
"city_celebrating" checks for size, but also requires that the city have
been happy the turn before, which we don't want.

        -- Benoît

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