HOG2
Classes | Namespaces | Enumerations | Functions
Fling.h File Reference
#include <iostream>
#include "SearchEnvironment.h"
Include dependency graph for Fling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FlingBoard
 
class  FlingMove
 
class  Fling
 
struct  std::hash< FlingBoard >
 

Namespaces

 std
 

Enumerations

enum  tFlingDir { kLeft = 0, kUp = 1, kRight = 2, kDown = 3 }
 

Functions

int GetX (int loc)
 
int GetY (int loc)
 
void GetMirror (const FlingBoard &in, FlingBoard &out, bool horiz, bool vert)
 
void ShiftToCorner (FlingBoard &in)
 
uint64_t GetCanonicalHash (uint64_t which)
 
static std::ostream & operator<< (std::ostream &out, const FlingBoard &loc)
 
static std::ostream & operator<< (std::ostream &out, const FlingMove &loc)
 
static bool operator== (const FlingBoard &l1, const FlingBoard &l2)
 
static bool operator!= (const FlingBoard &l1, const FlingBoard &l2)
 
static bool operator== (const FlingMove &l1, const FlingMove &l2)
 

Enumeration Type Documentation

◆ tFlingDir

enum tFlingDir
Enumerator
kLeft 
kUp 
kRight 
kDown 

Definition at line 73 of file Fling.h.

Function Documentation

◆ GetCanonicalHash()

uint64_t GetCanonicalHash ( uint64_t  which)

◆ GetMirror()

void GetMirror ( const FlingBoard in,
FlingBoard out,
bool  horiz,
bool  vert 
)

◆ GetX()

int GetX ( int  loc)
inline

◆ GetY()

int GetY ( int  loc)
inline

◆ operator!=()

static bool operator!= ( const FlingBoard l1,
const FlingBoard l2 
)
static

Definition at line 128 of file Fling.h.

References FlingBoard::GetRawBoard(), FlingBoard::height, and FlingBoard::width.

◆ operator<<() [1/2]

static std::ostream& operator<< ( std::ostream &  out,
const FlingBoard loc 
)
static

Definition at line 84 of file Fling.h.

◆ operator<<() [2/2]

static std::ostream& operator<< ( std::ostream &  out,
const FlingMove loc 
)
static

Definition at line 111 of file Fling.h.

References kDown, kLeft, kRight, and kUp.

◆ operator==() [1/2]

static bool operator== ( const FlingBoard l1,
const FlingBoard l2 
)
static

Definition at line 124 of file Fling.h.

References FlingBoard::GetRawBoard(), FlingBoard::height, and FlingBoard::width.

◆ operator==() [2/2]

static bool operator== ( const FlingMove l1,
const FlingMove l2 
)
static

Definition at line 132 of file Fling.h.

References FlingMove::dir, and FlingMove::startLoc.

◆ ShiftToCorner()

void ShiftToCorner ( FlingBoard in)