Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2002:
[freeciv-ai] Re: settlers hack
Home

[freeciv-ai] Re: settlers hack

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: settlers hack
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Mon, 23 Sep 2002 18:40:38 +0200

On Mon, Sep 23, 2002 at 04:31:27PM +0000, Per I. Mathisen wrote:
> Just read the patch.
> 
> +++ server/settlers.c 2002/09/23 16:30:39
> @@ -303,7 +303,17 @@
>    }
>  
>    cfood = food[2][2] + irrig[2][2];
> -  if (cfood == 0) return(0); /* no starving cities, thank you! -- Syela */
> +  if (cfood < 2) {
> +    /* no starving cities, thank you! -- Syela */
> +    /* This used to be zero, but I increased the limit to two to avoid
> +     * some common pathological behaviour. An optimal algorithm should
> +     * not need such a limitation, but the algorithm used here is far
> +     * from optimal, hence this hack. The problem is that the AI often
> +     * builds cities that are unable to produce settlers, which is
> +     * a lethal mistake. -- Per */
> +    return 0;
> +  }

So you are tweaking the rules because the AI can't handle it?
Strange intention.

This sounds like changing the election law because your favorite
party didn't win. Sorry.

Christian (just recovered from reading the federal election results)

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


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