Computer Chess Club Archives


Search

Terms

Messages

Subject: what classes all the serious C++ chess programs have?

Author: Uri Blass

Date: 15:02:18 08/09/04


I decided to get rid of global variables and to use classes and the question is
what classes I should use exactly.

It is obvious that there should be a class for time managament variables and I
already implement a file with class for this subject.

I may later divide it to 2 or 3 classes when I think about the following
options:

1)variables that do not change during the game(for example number of moves for
the first time control)

2)variables that are changed between searches when these varaibles can also have
2 types:
a)varaibles that are not changed during the search(number of move for the next
time control or the time that the search started)
b)varaibles that are changed during the search( example faillow varaible that
tell me if the program failed low in the last iteration).

I am asking what is your opinion?

should I divide the big class of varaibles that are relevant for time to more
classes and what other classes are suggested?

Uri




This page took 0.02 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.