#include <SpMoveGenerator.h>
Inheritance diagram for SpMoveGenerator:
Either static or 1-ply lookahead
Definition at line 19 of file SpMoveGenerator.h.
Public Member Functions | |
SpMoveGenerator (GoBoard &board) | |
virtual | ~SpMoveGenerator () |
virtual void | GenerateMoves (SgEvaluatedMoves &eval, SgBlackWhite toPlay) |
virtual int | EvaluateMove (SgPoint p)=0 |
Execute move if necessary, and then score. | |
Protected Member Functions | |
SpMoveGenerator (const SpMoveGenerator &) | |
Not implemented. | |
SpMoveGenerator & | operator= (const SpMoveGenerator &) |
Not implemented. | |
Protected Attributes | |
GoBoard & | m_board |
Reference to go board on which to play. |
SpMoveGenerator::SpMoveGenerator | ( | GoBoard & | board | ) | [explicit] |
Definition at line 22 of file SpMoveGenerator.h.
virtual SpMoveGenerator::~SpMoveGenerator | ( | ) | [virtual] |
Definition at line 26 of file SpMoveGenerator.h.
SpMoveGenerator::SpMoveGenerator | ( | const SpMoveGenerator & | ) | [protected] |
Not implemented.
virtual int SpMoveGenerator::EvaluateMove | ( | SgPoint | p | ) | [pure virtual] |
Execute move if necessary, and then score.
Implemented in SpStaticMoveGenerator, and Sp1PlyMoveGenerator.
Referenced by GenerateMoves(), and SpSimplePlayer::MoveValue().
void SpMoveGenerator::GenerateMoves | ( | SgEvaluatedMoves & | eval, | |
SgBlackWhite | toPlay | |||
) | [virtual] |
Reimplemented in SpDumbTacticalMoveGenerator, and SpLadderMoveGenerator.
Definition at line 18 of file SpMoveGenerator.cpp.
References SgEvaluatedMoves::AddMove(), EvaluateMove(), m_board, SgEvaluatedMoves::Relevant(), and GoBoard::SetToPlay().
Referenced by SpSimplePlayer::GenMove().
SpMoveGenerator& SpMoveGenerator::operator= | ( | const SpMoveGenerator & | ) | [protected] |
Not implemented.
GoBoard& SpMoveGenerator::m_board [protected] |
Reference to go board on which to play.
Definition at line 35 of file SpMoveGenerator.h.
Referenced by SpSafeMoveGenerator::Evaluate(), SpMinLibMoveGenerator::Evaluate(), SpMaxEyeMoveGenerator::Evaluate(), SpInfluenceMoveGenerator::Evaluate(), SpGreedyMoveGenerator::Evaluate(), SpCaptureMoveGenerator::Evaluate(), SpAverageMoveGenerator::Evaluate(), SpStaticMoveGenerator::EvaluateMove(), Sp1PlyMoveGenerator::EvaluateMove(), SpDumbTacticalMoveGenerator::GenerateAttackMoves(), SpDumbTacticalMoveGenerator::GenerateDefendMoves(), GenerateMoves(), SpLadderMoveGenerator::GenerateMoves(), SpDumbTacticalMoveGenerator::GenerateMoves(), SpMaxEyeMoveGenerator::Heuristic(), SpMinLibMoveGenerator::LibertyMinimum(), SpRandomMoveGenerator::Score(), and SpLibertyMoveGenerator::Score().