MoveAdvisor Class Reference

Move advisor. More...

#include <board.h>

List of all members.

Public Member Functions

bool getMove (player_t player, const Bitboard &bitboard, int stepsLeft, Move *move)
 Get move for given conditions.
bool getMoveRand (player_t player, const Bitboard &bitboard, int stepsLeft, Move *move)
bool addMove (const Move &move, const Bitboard &bitboard)
 Add move.
void update (float sample)
 Check existence of such a move.

Private Member Functions

bool hasMove (const Move &move, const Bitboard &bitboard)

Private Attributes

ContextMoves contextMoves [2]
list< int > playedCMs [2]
 List of played indexes.
bool update_
 Flag saying whether update is needed.
int used_


Detailed Description

Move advisor.

Mechanism for propagating good moves to playouts.


Member Function Documentation

bool MoveAdvisor::addMove ( const Move move,
const Bitboard &  bitboard 
)

Add move.

If there is no such move already, then creates context move for given move and position and stores it.


Member Data Documentation

list<int> MoveAdvisor::playedCMs[2] [private]

List of played indexes.


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

Generated on Thu Aug 6 23:29:08 2009 for akimot by  doxygen 1.5.7.1