61 const int seed = request.
m_nSeed;
64 case GeneratorType::Warnsdorff:
68 case GeneratorType::TakefujiLee:
72 case GeneratorType::DivideAndConquer:
76 case GeneratorType::ConcentricBraid:
79 case GeneratorType::FourCover:
85 if(cycletype == CycleType::TourFromTourney)
93 for(
int i=0; i<n; i++){
94 int dest = (*pBoard)[i];
95 int dest2 = (*pBoard)[dest];
Header for the concentric braided tourney generator CConcentricBraid.
int GetMoveIndex(int src, int dest)
Get move index.
Header for the neural network tourney generator CTakefujiLee.
Header for Warnsdorff's generator CWarnsdorff.
Knight's tour and tourney generator using Warnsdorff's heuristic.
void Generate(CBoard &b)
Generate a concentric braided tourney.
Four-cover tourney generator.
Header for the divide-and conquer generator CDivideAndConquer.
void Generate(CBoard &b, CycleType t)
Generate a tour or tourney.
void Generate(CBoard &b, CycleType t, const CRect &rect)
Recursion.
int m_nHeight
Board height.
void push(const data &element)
Insert at tail.
Header for the four-cover tourney generator CFourCover.
void Generate(CBoard &b)
Generate a four-cover tourney.
void operator()()
The code that gets run by each thread.
void JoinUntilTour()
Join cycles to reduce tourney size.
UINT64 m_nRelativeMove[8]
Double move count.
static CThreadSafeQueue< CSearchResult > m_cSearchResult
Search result queue.
Header for the search thread CSearchThread.
bool m_bDiscard
Discard result.
Neural network tourney generator.
GeneratorType
Generator type.
bool pop(data &element)
Delete from head and return.
Concentric braided tourney generator.
GeneratorType m_eGenerator
Generator type.
CycleType m_eCycle
Cycle type.
void Generate(CBoard &b)
Generate a tourney.
Divide-and-conquer knight's tour and tourney generator.
std::atomic_bool g_bFinished
Search termination flag.
UINT64 m_nSingleMove[8]
Single move count.
void Generate(CSearchRequest &request)
Generate knight's tour/tourney.
void Obfuscate()
Obfuscate function.
CTourneyDesc m_cTourneyDesc
Tourney descriptor.
static CThreadSafeQueue< CSearchRequest > m_cSearchRequest
Search request queue.
bool m_bObfuscate
Whether to obfuscate.