Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C or C++ for Chess Programming?

Author: Bruce Moreland

Date: 18:08:55 08/16/00

Go up one level in this thread


On August 16, 2000 at 14:38:04, Severi Salminen wrote:

>Hi!
>
>Well, I have to say that yes, my assembly chess program played some chess (maybe
>at 1200 ELO...), but it was indeed hard to write and debug. Now I'm asking how
>does OOP (object oriented programming) suit for chess programming? Or should I
>forget the C++ standard and stick to the plain old C? Are there any efficiency
>aspects involved? I'm asking this because I'm quite new to OOP and would like to
>start studying it only if it benefits chess programming somehow. I'll be using
>the free Borland C++ 5.5
>
>Thanks for any advice!
>
>Severi

If I did it over again I would do it in C++, but I would make sure that I didn't
optimize for convenience over speed.  There are some C++ elements that shouldn't
slow you down at all, and there are some that should slow you down a little
depending upon how you use them, and there are some that are nuts (exception
handling).  Maybe you could get away with using the first category.

But in any case, anything is better than assembler, that's insane, no offense to
Frans Morsch.

bruce




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.