Author: Tom Kerrigan
Date: 01:22:51 12/31/99
Go up one level in this thread
On December 31, 1999 at 01:24:34, Frank Schneider wrote: >But if you access the board from in the engine-code it looks like >board.blah (or board->blah). >In Gromit I use the board->blah style and I have a macro to access squares >if (...==BOARD(A1))... >I would not change the objectmodel just to save the 'board.' sometimes. Right now I'm just considering a possible design. Almost every line of my search code and evaluation code accesses the board in some way. So by simply making the engine class a derivative of the board class, it saves me from typing 'board.' hundreds of times and makes the code much clearer, IMO. Even if I called the board member variable 'b' instead of 'board' I would still want to avoid the member-variable design. -Tom
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.