Author: Pham Minh Tri
Date: 04:44:17 03/27/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? Yes, possible. Just write OOP program like C one (using only one class and one file for every thing), or compile a C one by OOP compiler ;) IMO, the real answer is NO. Using OOP means compiler will do more work for you. Thus, program is less optimized than C program in terms of speed and size. That ballances to advantages of fast develop and stable code. I think that problem is much smaller than the problems of chess board representations, using Pascal, C or ASM, compiling by GCC or VC, compiling for Pentium or Pentium Pro, focusing on search or eval, extensions, etc. In my case, I use OOP and compile by VC6.0. I have just bought a new computer, with double RAM and faster hard disk. Now I do not care if my program is losing few percents of NPS :) > >Regards, >Arshad Syed
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.