Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OOP - Is this possible?

Author: Scott Senkeresty

Date: 11:36:13 03/28/02

Go up one level in this thread


On March 27, 2002 at 06:25:12, Arshad F. Syed wrote:

>I plan to write a chess program. I was wondering if it would be worthwhile to
>use the OOP approach. I have visited some sites of chess programs using OOP. The
>general consensus is that OOP would cause a big hit on the NPS. Is it possible
>with some really good programming to write an OOP based program that would have
>the same NPS as the same program written without using OOP?
>
>Regards,
>Arshad Syed

To be totally honest, I think the best way to write a chess engine is to use
whatever methodology you are most comfortable with.

In my opinion, when writing your first chess engine it is totally and compelely
irrelevant if you lose 5 or 10% in NPS.  That is small potatoes compared to what
a better move ordering, or adding a null-move heurtistic or N other things...
will do for your performance.

I can say, as a first time engine writer myself, that I have a never ending list
of tasks to work on in my engine.  I have found many of the aspects of engine
writing to be quite challenging, and often frustrating.  Therefore, I think it
is much more important to make your experience fun, then to worry about
squeezing out extra NPS.  And for me, more understandable == more fun.  So, I do
have a fair amount of OO in my code, because I find it helps me stay organized.

Have fun!
-Scott



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.