Runs a player's genmove() and dfpn search in parallel. More...
#include <PlayAndSolve.hpp>
Classes | |
class | PlayerThread |
class | SolverThread |
Public Member Functions | |
PlayAndSolve (HexBoard &playerBrd, HexBoard &solverBrd, BenzenePlayer &player, DfpnSolver &solver, DfpnStates &positions, const Game &game) | |
HexPoint | GenMove (const HexState &state, double maxTime) |
Private Attributes | |
HexBoard & | m_playerBrd |
HexBoard & | m_solverBrd |
BenzenePlayer & | m_player |
DfpnSolver & | m_solver |
DfpnStates & | m_positions |
const Game & | m_game |
HexPoint | m_parallelResult |
Friends | |
class | SolverThread |
Runs a player's genmove() and dfpn search in parallel.
Definition at line 27 of file PlayAndSolve.hpp.
PlayAndSolve::PlayAndSolve | ( | HexBoard & | playerBrd, | |
HexBoard & | solverBrd, | |||
BenzenePlayer & | player, | |||
DfpnSolver & | solver, | |||
DfpnStates & | positions, | |||
const Game & | game | |||
) |
Definition at line 12 of file PlayAndSolve.cpp.
Definition at line 24 of file PlayAndSolve.cpp.
References HexBoard::ComputeAll(), HexBoard::GetPosition(), INVALID_POINT, LogInfo(), m_parallelResult, m_playerBrd, HexState::Position(), StoneBoard::SetPosition(), SolverThread, and HexState::ToPlay().
Referenced by MoHexEngine::DoSearch(), and WolveEngine::GenMove().
friend class SolverThread [friend] |
Definition at line 55 of file PlayAndSolve.hpp.
Referenced by GenMove().
const Game& PlayAndSolve::m_game [private] |
Definition at line 83 of file PlayAndSolve.hpp.
Referenced by PlayAndSolve::PlayerThread::operator()().
HexPoint PlayAndSolve::m_parallelResult [private] |
Definition at line 85 of file PlayAndSolve.hpp.
Referenced by GenMove(), PlayAndSolve::SolverThread::operator()(), and PlayAndSolve::PlayerThread::operator()().
BenzenePlayer& PlayAndSolve::m_player [private] |
Definition at line 77 of file PlayAndSolve.hpp.
Referenced by PlayAndSolve::PlayerThread::operator()().
HexBoard& PlayAndSolve::m_playerBrd [private] |
Definition at line 73 of file PlayAndSolve.hpp.
Referenced by GenMove(), and PlayAndSolve::PlayerThread::operator()().
DfpnStates& PlayAndSolve::m_positions [private] |
Definition at line 81 of file PlayAndSolve.hpp.
Referenced by PlayAndSolve::SolverThread::operator()().
DfpnSolver& PlayAndSolve::m_solver [private] |
Definition at line 79 of file PlayAndSolve.hpp.
Referenced by PlayAndSolve::SolverThread::operator()().
HexBoard& PlayAndSolve::m_solverBrd [private] |
Definition at line 75 of file PlayAndSolve.hpp.
Referenced by PlayAndSolve::SolverThread::operator()().