Knight's Tour Generator
Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours
Public Member Functions | Private Attributes | List of all members
CConcentricBraid Class Reference

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...
 
CBoardm_pBoard4x4 = nullptr
 Pointer to 4x4 center.
 
CBoardm_pBoard6x6 = nullptr
 Pointer to 6x6 center.
 

Detailed Description

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.

BraidedConcentric.png

Definition at line 42 of file ConcentricBraid.h.

Constructor & Destructor Documentation

◆ CConcentricBraid()

CConcentricBraid::CConcentricBraid ( )

Create boards for the \(4 \times 4\) and \(6 \times 6\) centers of concentric tourneys.

BraidedConcentricCenters.png

Definition at line 33 of file ConcentricBraid.cpp.

◆ ~CConcentricBraid()

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.

Member Function Documentation

◆ Generate()

void CConcentricBraid::Generate ( CBoard b)

Generate a concentric tourney.

Parameters
b[in, out] Chessboard.

Definition at line 49 of file ConcentricBraid.cpp.

Member Data Documentation

◆ m_nMove4x4

int CConcentricBraid::m_nMove4x4[16]
private
Initial value:
=
{
6, 7, 4, 5,
13, 12, 15, 14,
1, 0, 3, 2,
10, 11, 8, 9
}
bc4x4.png

Definition at line 44 of file ConcentricBraid.h.

◆ m_nMove6x6

int CConcentricBraid::m_nMove6x6[36]
private
Initial value:
=
{
8, 12, 6, 7, 17, 9,
19, 18, 4, 1, 2, 3,
25, 0, 22, 11, 5, 28,
31, 30, 16, 34, 35, 10,
13, 33, 15, 14, 32, 21,
26, 20, 24, 29, 23, 27
}
bc6x6.png

Definition at line 52 of file ConcentricBraid.h.