Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

PlayAndSolve Class Reference

Runs a player's genmove() and dfpn search in parallel. More...

#include <PlayAndSolve.hpp>

List of all members.

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

HexBoardm_playerBrd
HexBoardm_solverBrd
BenzenePlayerm_player
DfpnSolverm_solver
DfpnStatesm_positions
const Gamem_game
HexPoint m_parallelResult

Friends

class SolverThread

Detailed Description

Runs a player's genmove() and dfpn search in parallel.

Definition at line 27 of file PlayAndSolve.hpp.


Constructor & Destructor Documentation

PlayAndSolve::PlayAndSolve ( HexBoard playerBrd,
HexBoard solverBrd,
BenzenePlayer player,
DfpnSolver solver,
DfpnStates positions,
const Game game 
)

Definition at line 12 of file PlayAndSolve.cpp.


Member Function Documentation

HexPoint PlayAndSolve::GenMove ( const HexState state,
double  maxTime 
)

Friends And Related Function Documentation

friend class SolverThread [friend]

Definition at line 55 of file PlayAndSolve.hpp.

Referenced by GenMove().


Member Data Documentation

const Game& PlayAndSolve::m_game [private]

Definition at line 83 of file PlayAndSolve.hpp.

Referenced by PlayAndSolve::PlayerThread::operator()().

Definition at line 77 of file PlayAndSolve.hpp.

Referenced by PlayAndSolve::PlayerThread::operator()().

Definition at line 73 of file PlayAndSolve.hpp.

Referenced by GenMove(), and PlayAndSolve::PlayerThread::operator()().

Definition at line 81 of file PlayAndSolve.hpp.

Referenced by PlayAndSolve::SolverThread::operator()().

Definition at line 79 of file PlayAndSolve.hpp.

Referenced by PlayAndSolve::SolverThread::operator()().

Definition at line 75 of file PlayAndSolve.hpp.

Referenced by PlayAndSolve::SolverThread::operator()().


The documentation for this class was generated from the following files:


6 Jan 2011 Doxygen 1.6.3