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

SpMinLibMoveGenerator Class Reference

Tries to maximize minimum liberty of own minus opponent blocks. More...

#include <SpMinLibPlayer.h>

Inheritance diagram for SpMinLibMoveGenerator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SpMinLibMoveGenerator (const GoBoard &board)
virtual int Evaluate ()
int LibertyMinimum (SgBlackWhite toplay)
 Value corresponding to minimum liberties for EITHER color.
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

Tries to maximize minimum liberty of own minus opponent blocks.

Definition at line 16 of file SpMinLibPlayer.h.


Constructor & Destructor Documentation

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

Definition at line 20 of file SpMinLibPlayer.h.


Member Function Documentation

int SpMinLibMoveGenerator::Evaluate (  )  [virtual]
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]
int SpMinLibMoveGenerator::LibertyMinimum ( SgBlackWhite  toplay  ) 

Value corresponding to minimum liberties for EITHER color.

Definition at line 15 of file SpMinLibPlayer.cpp.

References GoBoard::All(), GoBoard::AllEmpty(), SpMoveGenerator::m_board, SG_ASSERT, SgOpp(), and GoBoard::Size().

Referenced by Evaluate().


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