Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpLadderMoveGenerator Class Reference

#include <SpLadderPlayer.h>

Inheritance diagram for SpLadderMoveGenerator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Generates ladder captures/escapes.

Definition at line 16 of file SpLadderPlayer.h.

Public Member Functions

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

Protected Attributes

GoBoardm_board
 Reference to go board on which to play.


Constructor & Destructor Documentation

SpLadderMoveGenerator::SpLadderMoveGenerator ( GoBoard board  )  [explicit]

Definition at line 20 of file SpLadderPlayer.h.


Member Function Documentation

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

Static move evaluation.

Implements SpMoveGenerator.

Definition at line 42 of file SpMoveGenerator.cpp.

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

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

Reimplemented from SpMoveGenerator.

Definition at line 28 of file SpLadderPlayer.cpp.

References SgEvaluatedMoves::AddMove(), GoBoard::All(), GO_LADDER_ESCAPED, GO_LADDER_UNSETTLED, GoMoveExecutor::IsLegal(), LadderStatus(), SpMoveGenerator::m_board, GoBoard::SetToPlay(), SG_BLACK, SG_PASS, SG_WHITE, GoBoard::Size(), and GoBoard::ToPlay().

int SpLadderMoveGenerator::Score ( SgPoint  p  )  [virtual]

Implements SpStaticMoveGenerator.

Definition at line 19 of file SpLadderPlayer.cpp.

References SG_ASSERT, and SG_UNUSED().


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