Generates ladder captures/escapes. More...
#include <SpLadderPlayer.h>
Public Member Functions | |
SpLadderMoveGenerator (const GoBoard &board) | |
virtual void | GenerateMoves (SgEvaluatedMoves &eval, SgBlackWhite toPlay) |
virtual int | Score (SgPoint p) |
int | EvaluateMove (SgPoint p) |
Static move evaluation. | |
Protected Attributes | |
const GoBoard & | m_board |
Reference to go board on which to play. |
Generates ladder captures/escapes.
Definition at line 15 of file SpLadderPlayer.h.
SpLadderMoveGenerator::SpLadderMoveGenerator | ( | const GoBoard & | board | ) | [explicit] |
Definition at line 19 of file SpLadderPlayer.h.
int SpStaticMoveGenerator::EvaluateMove | ( | SgPoint | p | ) | [virtual, inherited] |
Static move evaluation.
Implements SpMoveGenerator.
Definition at line 46 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(), GoModBoard::Board(), GO_LADDER_ESCAPED, GO_LADDER_UNSETTLED, GoMoveExecutor::IsLegal(), LadderStatus(), SpMoveGenerator::m_board, GoBoard::Occupied(), SgPointSet::PointOf(), GoBoard::SetToPlay(), SG_BLACK, SG_PASS, SG_WHITE, SgPointSet::Size(), 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().
const GoBoard& SpMoveGenerator::m_board [protected, inherited] |
Reference to go board on which to play.
Definition at line 33 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().