Nov 29, 2008

[Programming] Dependency on the static Mediocre-class

While going through the code I noticed many of the classes uses the static variables located in the Mediocre-class. It is not a good idea to use them directly like that, for the sake of encapsulation.

Examples of this is the Evaluation-class which uses evalHash and pawnHash that are located in the Mediocre-class.

So basically every class and method will get an extra argument where the used structure is passed instead.

No comments: