// $Id: COsPosition.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL
The COsPosition class includes the current state of play in a game - board position and clock settings.
Convert the position to your program's internal format. Use COsBoard and COsClock functions to do so.
COsBoard | board | Board type, position on the board, and color to move. |
COsClock | cks[2] | Time remaining in the game; cks[1] is WHITE. |
Creation | ||
void | Clear() | Clear the position and all elements. |
Modification | ||
void | Update(const COsMoveListItem& mli) | Update the position with a move. |
void | Update(const COsMoveList& ml, int nMoves=100000) | Update the position with the first nMoves moves from a list of moves. |
void | UpdateKomiSet(const COsMoveListItem mlis[2]) | Update the position after komi has been set. |
void | Calculate(const COsGame& game, int nMoves=100000) | Calculate the position in a game after nMoves moves. |