Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Protected Attributes

SpCaptureMoveGenerator Class Reference

Simple player that captures whenever possible, otherwise plays randomly. More...

#include <SpCapturePlayer.h>

Inheritance diagram for SpCaptureMoveGenerator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SpCaptureMoveGenerator (const GoBoard &board)
int Evaluate ()
int EvaluateMove (SgPoint p)
 Execute move, then evaluate board.
virtual void GenerateMoves (SgEvaluatedMoves &eval, SgBlackWhite toPlay)

Protected Attributes

const GoBoardm_board
 Reference to go board on which to play.

Detailed Description

Simple player that captures whenever possible, otherwise plays randomly.

Definition at line 15 of file SpCapturePlayer.h.


Constructor & Destructor Documentation

SpCaptureMoveGenerator::SpCaptureMoveGenerator ( const GoBoard board  )  [explicit]

Definition at line 19 of file SpCapturePlayer.h.


Member Function Documentation

int SpCaptureMoveGenerator::Evaluate (  )  [virtual]

Implements Sp1PlyMoveGenerator.

Definition at line 11 of file SpCapturePlayer.cpp.

References SpMoveGenerator::m_board, and GoBoard::NuCapturedStones().

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

Execute move, then evaluate board.

Implements SpMoveGenerator.

Definition at line 35 of file SpMoveGenerator.cpp.

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

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

Member Data Documentation

const GoBoard& SpMoveGenerator::m_board [protected, inherited]

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


Sun Mar 13 2011 Doxygen 1.7.1