Author: Bo Persson
Date: 09:21:21 09/22/03
Go up one level in this thread
On September 21, 2003 at 23:25:15, Edward Seid wrote: >On September 21, 2003 at 21:15:06, Robert Hyatt wrote: > >> A chess board is a good example of an object. There is >>no need to create a bunch of them, one is enough. I've personally seen more >>than one _really_ elegant OO (C++) chess program that was just as fast as >>mine (it was a bitboard program also). > >OK, so a chessboard is a good object for an OOP-oriented chess program. What >other things would be good to represent as objects? Just about anything you need to handle, that could use an abstraction, like board piece position move hash table killer move manager bitboard (don't tell Vincent) a chess clock a player a game a hash signature a log a move generator an opening library an IO manager whatever >For the chessboard and other objects, what would be the attributes and methods >of each object? Anything you need really. We'll leave the exact details as an excercise. :-) > >(Sorry that I ask so many questions, but I promise the next one won't be "Write >me code to do the above") Bo Persson
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.