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

SpRandomMoveGenerator Class Reference

Plays random moves, but does not fill obvious 1-point eyes. More...

#include <SpRandomPlayer.h>

Inheritance diagram for SpRandomMoveGenerator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Attributes

const GoBoardm_board
 Reference to go board on which to play.

Detailed Description

Plays random moves, but does not fill obvious 1-point eyes.

Definition at line 17 of file SpRandomPlayer.h.


Constructor & Destructor Documentation

SpRandomMoveGenerator::SpRandomMoveGenerator ( const GoBoard board  ) 

Definition at line 21 of file SpRandomPlayer.h.


Member Function Documentation

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 SpMoveGenerator::GenerateMoves ( SgEvaluatedMoves eval,
SgBlackWhite  toPlay 
) [virtual, inherited]
int SpRandomMoveGenerator::Score ( SgPoint  p  )  [virtual]

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