Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Design: what would your objects be?

Author: Daniel Clausen

Date: 03:19:57 07/03/02

Go up one level in this thread


On July 03, 2002 at 05:50:28, Sven Reichard wrote:

>On July 03, 2002 at 05:37:11, Daniel Clausen wrote:
>> <snip>  But for example when it comes
>>to generating moves, I don't use a dynamic (or at least bounds-checking)
>>move-list. I assume you do that, Sven. :)
>
>std::list<SmartPointer<Move> >; // :-))
>

I knew it. :p I don't use the standard template library, because I didn't really
like it too much last time I had a look on it. (it's more 'generic programming'
than 'object-oriented programming' and some classes had too many side-effects
for my taste (that is, more than zero :)) On the other hand, re-inventing a
list-class is a bit silly and maybe I should have a look at it again. :)
[Actually I _did_ create my own list template, and the game class uses it to
store the played moves.]

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.