Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpMaxEyeMoveGenerator Class Reference

#include <SpMaxEyePlayer.h>

Inheritance diagram for SpMaxEyeMoveGenerator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Tries to maximize simple eye score of any point.

Definition at line 20 of file SpMaxEyePlayer.h.

Public Member Functions

 SpMaxEyeMoveGenerator (GoBoard &board, bool eyego=false)
int Evaluate ()
float Heuristic (SgPoint p, SgBlackWhite color)
int EvaluateMove (SgPoint p)
 Execute move, then evaluate board.
virtual void GenerateMoves (SgEvaluatedMoves &eval, SgBlackWhite toPlay)

Protected Attributes

GoBoardm_board
 Reference to go board on which to play.

Private Attributes

bool m_eyeGo


Constructor & Destructor Documentation

SpMaxEyeMoveGenerator::SpMaxEyeMoveGenerator ( GoBoard board,
bool  eyego = false 
) [explicit]

Definition at line 24 of file SpMaxEyePlayer.h.


Member Function Documentation

int SpMaxEyeMoveGenerator::Evaluate (  )  [virtual]

Implements Sp1PlyMoveGenerator.

Definition at line 37 of file SpMaxEyePlayer.cpp.

References Heuristic(), SpMoveGenerator::m_board, m_eyeGo, GoBoard::Opponent(), and GoBoard::ToPlay().

int Sp1PlyMoveGenerator::EvaluateMove ( SgPoint  p  )  [virtual, inherited]

Execute move, then evaluate board.

Implements SpMoveGenerator.

Definition at line 33 of file SpMoveGenerator.cpp.

References Sp1PlyMoveGenerator::Evaluate(), GoMoveExecutor::IsLegal(), and SpMoveGenerator::m_board.

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

float SpMaxEyeMoveGenerator::Heuristic ( SgPoint  p,
SgBlackWhite  color 
)

Definition at line 17 of file SpMaxEyePlayer.cpp.

References SpMoveGenerator::m_board, GoEyeUtil::NumberOfMoveToEye2(), and GoBoard::Opponent().

Referenced by Evaluate().


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(), Evaluate(), SpInfluenceMoveGenerator::Evaluate(), SpGreedyMoveGenerator::Evaluate(), SpCaptureMoveGenerator::Evaluate(), SpAverageMoveGenerator::Evaluate(), SpStaticMoveGenerator::EvaluateMove(), Sp1PlyMoveGenerator::EvaluateMove(), SpDumbTacticalMoveGenerator::GenerateAttackMoves(), SpDumbTacticalMoveGenerator::GenerateDefendMoves(), SpMoveGenerator::GenerateMoves(), SpLadderMoveGenerator::GenerateMoves(), SpDumbTacticalMoveGenerator::GenerateMoves(), Heuristic(), SpMinLibMoveGenerator::LibertyMinimum(), SpRandomMoveGenerator::Score(), and SpLibertyMoveGenerator::Score().

bool SpMaxEyeMoveGenerator::m_eyeGo [private]

Definition at line 33 of file SpMaxEyePlayer.h.

Referenced by Evaluate().


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


17 Jun 2010 Doxygen 1.4.7