[freeciv-ai] RFC: Behaviour constants.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
How can we improve AI without going too deep?
This is a legitimate question, and an answer to it is given by various
constants and factors and multipliers that the AI code is peppered with.
Examples are: what is considered to be a small nation (number of cities)
-- used to encourage settler building; what is the default danger for
capital; what is food/shield weighting etc.
Some of these numbers are defines, some are just plain numbers. What I
propose is to collect them all in some .h file included in all AI files,
so they can be tweaked in a systematic way. Then tweak them and run
pitfights, lots of them. There ar, of course difficulties like "constant
is constant for all nations", but they are solvable.
A note on pitfights: when I did it, I used Per's script, but slightly
modified. I would run a gmame with two players H and E, and each map
would be run twice, the second time with E in H's starting position and
vice versa. Then if E would lose both games I knew my changes were making
it weaker; if E won both games, it was becoming stronger.
Best wishes,
G.
- [freeciv-ai] RFC: Behaviour constants.,
Gregory Berkolaiko <=
|
|