Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OOP: objects and methods

Author: Bo Persson

Date: 15:01:06 09/22/03

Go up one level in this thread


On September 22, 2003 at 17:51:21, Daniel Clausen wrote:

>On September 22, 2003 at 17:33:35, Bo Persson wrote:
>
>>On September 22, 2003 at 15:40:20, Dan Andersson wrote:
>>
>>> Polymorphism is considered a cornerstone of OOP.
>>
>>Here is where the religious aspects start. :-)
>>
>>How do you apply that to a chess game?
>
>That is dangerously close to "I never did it therefore it's not possible". :))

Yes, could be.

The problem seems to be that I cannot write a "proper" OO chess program just
because I cannot find a good place to add enough polymorphism.

  snip
>
>In summary, I think that there's no speed penalty if you use C++ just as a
>better C. There's a speed penalty when you really use some OO-design, but it
>doesn't have to be completely slow, depending on how clever you do things.

Yes, but I just use objects because it improves my program. If I did it
"properly" OO, I'm sure I could make it run real slow too.  :-)

Bo Persson

>
>Sargon



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.