// $Id: COsPosition.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL COsPosition

COsPosition

The COsPosition class includes the current state of play in a game - board position and clock settings.

Normal Usage

Convert the position to your program's internal format. Use COsBoard and COsClock functions to do so.

Variables

COsBoardboardBoard type, position on the board, and color to move.
COsClockcks[2]Time remaining in the game; cks[1] is WHITE.

Functions

Creation
voidClear()Clear the position and all elements.
Modification
voidUpdate(const COsMoveListItem& mli)Update the position with a move.
voidUpdate(const COsMoveList& ml, int nMoves=100000)Update the position with the first nMoves moves from a list of moves.
voidUpdateKomiSet(const COsMoveListItem mlis[2])Update the position after komi has been set.
voidCalculate(const COsGame& game, int nMoves=100000)Calculate the position in a game after nMoves moves.