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

SpRandomPlayer Class Reference

Simple player using SpRandomMoveGenerator. More...

#include <SpRandomPlayer.h>

Inheritance diagram for SpRandomPlayer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SpRandomPlayer (const GoBoard &board)
std::string Name () const
SgPoint GenMove (const SgTimeRecord &time, SgBlackWhite toPlay)
virtual int MoveValue (SgPoint p)
GoBoardBoard ()
const GoBoardBoard () const
SgNodeCurrentNode () const
void ClearSearchTraces ()
SgNodeTransferSearchTraces ()
virtual void OnGameFinished ()
virtual void OnNewGame ()
virtual void Ponder ()
int Variant () const
void SetVariant (int variant)
void SetSubscriber (GoBoard &subscriber)
void UpdateSubscriber ()

Protected Member Functions

bool UseFilter () const
 Don't play on safe points.
virtual void OnBoardChange ()
virtual void PrePlay (GoPlayerMove move)
virtual void OnPlay (GoPlayerMove move)
virtual void PreUndo ()
virtual void OnUndo ()

Protected Attributes

SgNodem_currentNode

Detailed Description

Simple player using SpRandomMoveGenerator.

Definition at line 31 of file SpRandomPlayer.h.


Constructor & Destructor Documentation

SpRandomPlayer::SpRandomPlayer ( const GoBoard board  ) 

Definition at line 35 of file SpRandomPlayer.h.


Member Function Documentation

SgPoint SpSimplePlayer::GenMove ( const SgTimeRecord time,
SgBlackWhite  toPlay 
) [virtual, inherited]
int SpSimplePlayer::MoveValue ( SgPoint  p  )  [virtual, inherited]
std::string SpRandomPlayer::Name (  )  const [virtual]

Reimplemented from GoPlayer.

Definition at line 39 of file SpRandomPlayer.h.

bool SpRandomPlayer::UseFilter (  )  const [protected, virtual]

Don't play on safe points.

Reimplemented from SpSimplePlayer.

Definition at line 45 of file SpRandomPlayer.h.


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


Sun Mar 13 2011 Doxygen 1.7.1