Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpMoveGenerator Class Reference

#include <SpMoveGenerator.h>

Inheritance diagram for SpMoveGenerator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Simple move generators.

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.
SpMoveGeneratoroperator= (const SpMoveGenerator &)
 Not implemented.

Protected Attributes

GoBoardm_board
 Reference to go board on which to play.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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().


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


17 Jun 2010 Doxygen 1.4.7