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

Code for the structs CSearchRequest, CSearchResult, and CRect. More...

#include "Structs.h"
#include "Helpers.h"

Go to the source code of this file.

Variables

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.