![]() |
Knight's Tour Generator
Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours
|
Concentric braided tourney generator. More...
#include <ConcentricBraid.h>
Public Member Functions | |
CConcentricBraid () | |
Constructor. More... | |
~CConcentricBraid () | |
Destructor. More... | |
void | Generate (CBoard &b) |
Generate a concentric braided tourney. More... | |
Private Attributes | |
int | m_nMove4x4 [16] |
Undirected move table for 4x4 center. More... | |
int | m_nMove6x6 [36] |
Undirected move table for 6x6 center. More... | |
CBoard * | m_pBoard4x4 = nullptr |
Pointer to 4x4 center. | |
CBoard * | m_pBoard6x6 = nullptr |
Pointer to 6x6 center. | |
Concentric braided tourneys have a \(4 \times 4\) or \(6 \times 6\) center surrounded by concentric rings of braids. The following image shows the \(16 \times 16\) and \(18 \times 18\) concentric braided tourneys.
Definition at line 42 of file ConcentricBraid.h.
CConcentricBraid::CConcentricBraid | ( | ) |
Create boards for the \(4 \times 4\) and \(6 \times 6\) centers of concentric tourneys.
Definition at line 33 of file ConcentricBraid.cpp.
CConcentricBraid::~CConcentricBraid | ( | ) |
Delete the boards for the \(4 \times 4\) and \(6 \times 6\) centers of concentric tourneys created in the constructor.
Definition at line 41 of file ConcentricBraid.cpp.
void CConcentricBraid::Generate | ( | CBoard & | b | ) |
Generate a concentric tourney.
b | [in, out] Chessboard. |
Definition at line 49 of file ConcentricBraid.cpp.
|
private |
Definition at line 44 of file ConcentricBraid.h.
|
private |
Definition at line 52 of file ConcentricBraid.h.