Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpSafeMoveGenerator Class Reference

#include <SpSafePlayer.h>

Inheritance diagram for SpSafeMoveGenerator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Uses GoSafetySolver and one ply search.

Strong in the end, random in the beginning

Definition at line 18 of file SpSafePlayer.h.

Public Member Functions

 SpSafeMoveGenerator (GoBoard &board)
int Evaluate ()
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.


Constructor & Destructor Documentation

SpSafeMoveGenerator::SpSafeMoveGenerator ( GoBoard board  )  [explicit]

Definition at line 22 of file SpSafePlayer.h.


Member Function Documentation

int SpSafeMoveGenerator::Evaluate (  )  [virtual]

Implements Sp1PlyMoveGenerator.

Definition at line 14 of file SpSafePlayer.cpp.

References GoSafetySolver::FindSafePoints(), SpMoveGenerator::m_board, GoBoard::Opponent(), and SgOppBW().

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


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 Evaluate(), SpMinLibMoveGenerator::Evaluate(), SpMaxEyeMoveGenerator::Evaluate(), SpInfluenceMoveGenerator::Evaluate(), SpGreedyMoveGenerator::Evaluate(), SpCaptureMoveGenerator::Evaluate(), SpAverageMoveGenerator::Evaluate(), SpStaticMoveGenerator::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