Author: Dan Newman
Date: 19:18:18 02/14/00
Go up one level in this thread
On February 14, 2000 at 15:25:24, Dave Gomboc wrote: >On February 14, 2000 at 14:38:14, José de Jesús García Ruvalcaba wrote: > >>On February 14, 2000 at 03:16:33, Dave Gomboc wrote: >> >>[big snip] >>> >>>How much faster do you think a switch is than using virtual dispatch? >>> >>>Dave >> >>What is a virtual dispatch? >>José. > >What you get if you went OO-crazy and had a piece class with descendents for >pawn, knight, bishop, etc., then called a member function. > >Dave I've tried to go OO-crazy once or twice, but the one thing that seemed to get in the way and require some really hairy solution was pawn promotion. The only thing I could think of doing was to maintain a pool of extra promotion pieces and perhaps overload new and delete in the piece class to get the new piece from this pool. But all that extra mechanism seemed like too much... -Dan.
This page took 0.01 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.