HOG2
Functions | Variables
Hexagon.cpp File Reference
#include "Hexagon.h"
#include <ctype.h>
Include dependency graph for Hexagon.cpp:

Go to the source code of this file.

Functions

constexpr uint64_t bits (uint64_t a, uint64_t b, uint64_t c)
 
constexpr uint64_t bits (uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e, uint64_t f)
 

Variables

const int rotateCWTable [54]
 
const int flipTable [54]
 
const int noFlipMoveCount [numPieces]
 
const uint64_t locations [numPieces][14 *6 *2+1]
 

Function Documentation

◆ bits() [1/2]

constexpr uint64_t bits ( uint64_t  a,
uint64_t  b,
uint64_t  c 
)
constexpr

◆ bits() [2/2]

constexpr uint64_t bits ( uint64_t  a,
uint64_t  b,
uint64_t  c,
uint64_t  d,
uint64_t  e,
uint64_t  f 
)
constexpr

Definition at line 22 of file Hexagon.cpp.

References bits(), and d.

Variable Documentation

◆ flipTable

const int flipTable[54]
Initial value:
=
{47,48,49,50,51,52,53,38,39,40,41,42,43,44,45,46,27,28,29,30,31,32,33,34,35,36,37,16,17,18,19,20,21,22,23,24,25,26,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6}

Definition at line 30 of file Hexagon.cpp.

Referenced by HexagonEnvironment::BuildFlipTable().

◆ locations

const uint64_t locations[numPieces][14 *6 *2+1]

◆ noFlipMoveCount

const int noFlipMoveCount[numPieces]
Initial value:
=
{
4,
42,
72,
72/2,
156/2,
156/2,
144/2,
168/2,
126,
72/2
}

Definition at line 33 of file Hexagon.cpp.

Referenced by HexagonEnvironment::GetActions().

◆ rotateCWTable

const int rotateCWTable[54]
Initial value:
=
{5,6,14,15,25,26,37,3,4,12,13,23,24,35,36,46,1,2,10,11,21,22,33,34,44,45,53,0,8,9,19,20,31,32,42,43,51,52,7,17,18,29,30,40,41,49,50,16,27,28,38,39,47,48}

Definition at line 27 of file Hexagon.cpp.

Referenced by HexagonEnvironment::BuildRotationTable().