#include <board.h>
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_ |
Mechanism for propagating good moves to playouts.
| 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.
list<int> MoveAdvisor::playedCMs[2] [private] |
List of played indexes.
1.5.7.1