HOG2
|
#include "RubiksCubeEdges.h"
#include "GLUtil.h"
#include <cassert>
#include <string>
#include <thread>
Go to the source code of this file.
Macros | |
#define | MR |
Functions | |
RubikEdgeState | RotateRubikEdgeClockwise (const RubikEdgeState &in, int step) |
Implementation details: More... | |
template<typename t > | |
void | LocalApplyAction (t &s, RubikEdgeAction a) |
uint64_t | Factorial (int n) |
int | get (uint64_t state, int whichLoc) |
void | set (uint64_t &state, int whichLoc, int cube) |
void | swap (uint64_t &state, int loc1, int loc2) |
#define MR |
Definition at line 1335 of file RubiksCubeEdges.cpp.
|
inline |
Definition at line 559 of file RubiksCubeEdges.cpp.
Referenced by RubikEdge::getMaxSinglePlayerRank(), RubikEdge::getMaxSinglePlayerRank2(), RubikEdge::GetStateFromHash(), RubikEdge::GetStateHash(), and RubikEdge::rankPlayerRemaining().
|
inline |
Definition at line 569 of file RubiksCubeEdges.cpp.
Referenced by RubikEdge::GetStateFromHash(), RubikEdgePDB::GetStateFromHash(), RubikEdge::MRRank(), and RubikEdge::MRRank2().
void LocalApplyAction | ( | t & | s, |
RubikEdgeAction | a | ||
) |
Definition at line 259 of file RubiksCubeEdges.cpp.
References d.
RubikEdgeState RotateRubikEdgeClockwise | ( | const RubikEdgeState & | in, |
int | step | ||
) |
Implementation details:
This just implements the 12 Edges. Corners are labeled from 0...11 as follows
+—6—+ |\ \ | 0 4 7 ___2___\ | | | \ 1 3 8 | | |___9___|
+—6—+ | |\ | | 4 7 5 \ |___11__| | \ \ 3 8 10 | ___9___|
Definition at line 43 of file RubiksCubeEdges.cpp.
References RubikEdgeStateArray::FlipCubeOrientation(), RubikEdgeStateArray::GetCubeInLoc(), RubikEdgeStateArray::GetCubeOrientation(), RubikEdgeStateArray::SetCubeInLoc(), and RubikEdgeStateArray::SetCubeOrientation().
|
inline |
Definition at line 574 of file RubiksCubeEdges.cpp.
Referenced by RubikEdge::GetStateFromHash(), RubikEdgePDB::GetStateFromHash(), RubikEdge::GetStateHash(), RubikEdgePDB::GetStateHash(), and RubikEdge::rankPlayerRemaining().
|
inline |
Definition at line 582 of file RubiksCubeEdges.cpp.
Referenced by RubikEdge::MRRank(), RubikEdge::MRRank2(), RubikEdge::MRUnrank(), and RubikEdge::MRUnrank2().