#include <OthelloBoard.h>
Public Member Functions | |
| COthelloBoard () | |
| COthelloBoard. | |
| ~COthelloBoard () | |
| ~COthelloBoard | |
| void | NewGame () |
| NewGame. | |
| void | PlayMove (const COthelloMove *m) |
| PlayMove. | |
| bool | CheckMove (const COthelloMove *m) const |
| CheckMove. | |
| COthelloPiece::TYPE | GetPieceType (uint32 x, uint32 y) const |
| GetPieceType. | |
Protected Member Functions | |
| int32 | CheckDirection (const COthelloMove *m, int32 direction) const |
| CheckDirection. | |
Description: Represents an Othello game board.
Limitations:
|
|
COthelloBoard. Description: Class constructor Limitations: NONE |
|
|
~COthelloBoard Description: Class deconstructor Limitations: NONE |
|
||||||||||||
|
CheckDirection. Description: Checks a given direction for flipped pieces.
|
|
|
CheckMove. Description: Checks a move and returns true if it is valid.
|
|
||||||||||||
|
GetPieceType. Description: Returns the type of the piece at the given location.
|
|
|
NewGame. Description: Resets the board to the beginning state.
|
|
|
PlayMove. Description: Updates the board based on a given move.
|