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

Code for CRail. More...

#include "Defines.h"
#include "Includes.h"
#include "Helpers.h"
#include "Rail.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.