Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How long to build your chess engine

Author: Mathieu Pagé

Date: 10:07:31 01/06/04

Go up one level in this thread


>Currently my source is very unreadable and each code change is very tricky. So i
>plan to rewrite my chess engine, after the IPCCC in February, totally from the
>scratch. My next chess engine will be devoloped object oriented. Well OOP is
>perhaps a bit slower, but therefore much more readable and changeable.

Hi,

 I don't think that OOP design is slower than no OOP if it is well desgned and
coded.

 You just have to stay realistics and not fall into extreme OO, like having a
class for each pieces, sqares, ranks, coluns ...

 The only technique of OOP that will make your code slower is the virtual
functions... but it will not be a big overhead.

 So if you take care of what you do and how you design your engine, OOP can make
your engine as fast as if it was non-oop but much more readable/changeable.

Mathieu



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.