Knight's Tour Generator
Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours
Variables
Warnsdorff.cpp File Reference

Code for Warnsdorff's generator CWarnsdorff. More...

#include "Warnsdorff.h"
#include "Defines.h"

Go to the source code of this file.

Variables

std::atomic_bool g_bFinished
 Search termination flag.
 
MoveDeltas g_vecDeltas
 Move deltas for all possible knight's moves. More...
 

Variable Documentation

◆ g_vecDeltas

MoveDeltas g_vecDeltas

Move deltas (horizontal and vertical displacements) for the 8 knight's moves indexed counterclockwise from \((2, -1)\) (the origin is at top left of the board, positive \(x\) is rightwards, and positive \(y\) is downwards.

movedeltas.png

Definition at line 68 of file Helpers.cpp.