Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpStaticMoveGenerator Class Reference

#include <SpMoveGenerator.h>

Inheritance diagram for SpStaticMoveGenerator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Statically assigns a value to a given move.

Definition at line 45 of file SpMoveGenerator.h.

Public Member Functions

 SpStaticMoveGenerator (GoBoard &board)
virtual int Score (SgPoint p)=0
int EvaluateMove (SgPoint p)
 Static move evaluation.
virtual void GenerateMoves (SgEvaluatedMoves &eval, SgBlackWhite toPlay)

Protected Attributes

GoBoardm_board
 Reference to go board on which to play.


Constructor & Destructor Documentation

SpStaticMoveGenerator::SpStaticMoveGenerator ( GoBoard board  )  [explicit]

Definition at line 49 of file SpMoveGenerator.h.


Member Function Documentation

int SpStaticMoveGenerator::EvaluateMove ( SgPoint  p  )  [virtual]

Static move evaluation.

Implements SpMoveGenerator.

Definition at line 42 of file SpMoveGenerator.cpp.

References GoBoard::IsLegal(), SpMoveGenerator::m_board, and Score().

void SpMoveGenerator::GenerateMoves ( SgEvaluatedMoves eval,
SgBlackWhite  toPlay 
) [virtual, inherited]

Reimplemented in SpDumbTacticalMoveGenerator, and SpLadderMoveGenerator.

Definition at line 18 of file SpMoveGenerator.cpp.

References SgEvaluatedMoves::AddMove(), SpMoveGenerator::EvaluateMove(), SpMoveGenerator::m_board, SgEvaluatedMoves::Relevant(), and GoBoard::SetToPlay().

Referenced by SpSimplePlayer::GenMove().

virtual int SpStaticMoveGenerator::Score ( SgPoint  p  )  [pure virtual]

Implemented in SpDumbTacticalMoveGenerator, SpLadderMoveGenerator, SpLibertyMoveGenerator, and SpRandomMoveGenerator.

Referenced by EvaluateMove().


Member Data Documentation

GoBoard& SpMoveGenerator::m_board [protected, inherited]

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(), EvaluateMove(), Sp1PlyMoveGenerator::EvaluateMove(), SpDumbTacticalMoveGenerator::GenerateAttackMoves(), SpDumbTacticalMoveGenerator::GenerateDefendMoves(), SpMoveGenerator::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