[Freeciv-Dev] fast hack for an easy AI.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello,
Here is a small patch which slow down ai expansion at easy level.
It seems to work well.
I choose a 200x100 world with a landmadd of 35 and generator 1.
At easy level, year 300 ad, AI has 12 towns.
With the same world at hard level, AI has 25 towns at year 1000bc.
--- brunel/freecvs/server/settlers.c Sun Apr 25 17:14:16 1999
+++ freeciv/server/settlers.c Fri May 7 17:03:14 1999
@@ -929,7 +929,9 @@
/** Decide whether to build a new city:
** if so, modify: gx, gy, best_newv, best_act */
- if (pplayer->ai.control) { /* don't want to make cities otherwise */
+ if ((pplayer->ai.control) &&
+ (myrand(4) < pplayer->ai.skill_level))
+ { /* don't want to make cities otherwise */
if (punit->ai.ai_role == AIUNIT_BUILD_CITY) {
remove_city_from_minimap(punit->goto_dest_x, punit->goto_dest_y);
}
Regards,
- [Freeciv-Dev] A few miscellaneous ideas for improvement, Jules Bean, 1999/05/07
- [Freeciv-Dev] fast hack for an easy AI.,
Nicolas Brunel <=
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Daniel Sjolie, 1999/05/07
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Massimo Campostrini, 1999/05/10
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Jules Bean, 1999/05/10
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Greg Wooledge, 1999/05/10
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Jules Bean, 1999/05/10
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, David Pfitzner, 1999/05/10
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Nicolas Brunel, 1999/05/11
- Re: [Freeciv-Dev] A few miscellaneous ideas for improvement, Greg Wooledge, 1999/05/11
|
|