121 void Save(std::string& name);
bool InsertDirectedMove(int src, int dest)
Insert a directed move.
int GetHeight()
Get height.
int GetMoveIndex(int src, int dest)
Get move index.
bool IsUnused(int index)
Test for unused cell.
Defines, enumerated types, and typedefs.
bool CellIndexInRange(int index)
Index in range test.
bool DeleteMove(int src, int dest)
Delete a move.
bool IsDirected()
Directed board test.
UINT GetTourneyIds(int *&id)
Get tourney identifier for each cell.
int GetDest(int i, const MoveDelta &delta)
Get destination of move.
void MakeDirected()
Make into a directed board.
bool IsUndirected()
Undirected board test.
UINT m_nSize
Board size in cells.
std::pair< int, int > MoveDelta
Move delta for a knight's move.
Header for the structs CSearchRequest, CSearchResult, and CRect.
bool IsKnightMove(int i, int j)
Knight's move test.
Header for helper functions.
int * m_nMove2
Secondary move table.
bool IsOnBoard(int pos, const MoveDelta &delta)
Move stays on board.
unsigned int UINT
Abbreviation for unsigned integer.
bool InRangeY(int y)
Y coordinate in range test.
void Save(std::string &name)
Save board to a text file.
bool IsTourney()
Tourney test.
int GetAvailableMoveCount(int index)
Get number of moves from a cell.
Pseudorandom number generator (PRNG for short).
bool IsMove(int i, int j)
Move test.
int * m_nMove
Primary move table.
Header for the pseudo-random number generator CRandom.
UINT m_nHeight
Board height in cells.
void CopyToSubBoard(CBaseBoard &b, int x, int y)
Copy to sub-board.
int operator[](int index)
Get a move from the board.
bool IsTour()
Knight's tour test.
void MakeUndirected()
Make into an undirected board.
void SaveToSVG(std::string &name)
Save to an SVG file.
UINT m_nWidth
Board width in cells.
bool InsertUndirectedMove(int src, int dest)
Insert an undirected move.
void Clear()
Clear the board of moves.
bool InRangeX(int x)
X coordinate in range test.