// $Id: COsBoardType.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL
The COsBoardType class tells the shape of the board - size and whether it is octagonal.
Use when looping over all squares in the board.
Variables | |
int n | Board size |
bool fOcto | true if the board is octagonal. |
Creation | |
Clear() | Clear all information from the board type. |
Information | |
DummyCorner() | Returns true if the square is cut off in an octagonal board. |
MaxRand() | Return the maximum number of preplaced discs in rand games. |
NPlayableSquares() | Returns the number of black/white/empty squares. |
NTotalSquares() | Returns the number of squares used to store the whole board, including the dummy squares on the border. |
I/O | |
In() | Reads from a stream in the GGF format, normally use the >> operator. |
Out() | Write to a stream in GGF format, normally use the << operator. |