Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12735) posting patches
Home

[Freeciv-Dev] Re: (PR#12735) posting patches

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12735) posting patches
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 9 Apr 2005 12:58:30 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12735 >

On Wed, 6 Apr 2005, Brian Dunstan wrote:
> OK, the patch I had in mind adds a new AI level
> ('expert', AI level 8), and has economic management
> that mimics that of a largepox human player.
...
> 95% of the code is in four new .c/.h file pairs in the
> ai/ directory.Since it is a large patch, it may take
> some high level discussion before trying to integrate
> it

You are going the completely wrong way about this. Instead of largely
duplicating the existing AI code with your own changes, write changes to
the existing AI code as a series of smaller patches.

As to the content itself, I only looked at it briefly:

Your patch hardcodes a lot of stuff that we have worked hard to
generalize. This is bad.

The idea of unit quotas is a good one, but the way they are calculated are
much too simple. The AI is supposed to work correct with a great number of
different rulesets.

  - Per





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