Methods in DfsSolver that do not need DfsSolver's private data. More...
Functions | |
int | DistanceFromCenter (const ConstBoard &brd, HexPoint p) |
Computes distance from the center of the board. |
Methods in DfsSolver that do not need DfsSolver's private data.
int DfsSolverUtil::DistanceFromCenter | ( | const ConstBoard & | brd, | |
HexPoint | p | |||
) |
Computes distance from the center of the board.
Definition at line 891 of file DfsSolver.cpp.
References BoardUtils::CenterPoint(), BoardUtils::CenterPointLeft(), BoardUtils::CenterPointRight(), ConstBoard::Distance(), ConstBoard::Height(), and ConstBoard::Width().
Referenced by DfsSolver::OrderMoves().