|
void | pv_debug (Search *search, const Move *bestmove, FILE *f) |
| Debug PV. More...
|
|
bool | is_pv_ok (Search *search, int bestmove, int search_depth) |
| Check if PV is ok. More...
|
|
static int | guess_move (Search *search, Board *board) |
| Guess a move. More...
|
|
void | record_best_move (Search *search, const Board *init_board, const Move *bestmove, const int alpha, const int beta, const int depth) |
| Record best move. More...
|
|
void | show_current_move (FILE *f, Search *search, const Move *move, const int alpha, const int beta, const bool parallel) |
|
int | search_bound (const Search *search, int score) |
| bound root scores according to stable squares More...
|
|
static int | search_route_PVS (Search *search, int alpha, int beta, const int depth, Node *node) |
| Reroute the PVS between midgame,endgame or terminal PVS. More...
|
|
int | search_get_pv_cost (Search *search) |
| Compute a cost as a combination of node count, depth, etc. from hash_table. More...
|
|
int | PVS_root (Search *search, const int alpha, const int beta, const int depth) |
| Principal Variation Search algorithm at the root of the tree. More...
|
|
int | aspiration_search (Search *search, int alpha, int beta, const int depth, int score) |
| Aspiration window. More...
|
|
static bool | get_last_level (Search *search, int *depth, int *selectivity) |
| Retrieve the last level of the search. More...
|
|
void | iterative_deepening (Search *search, int alpha, int beta) |
| Iterative deepening. More...
|
|
void * | search_run (void *v) |
| Search the bestmove of a given board. More...
|
|
Search near the end of the game.
- Date
- 1998 - 2017
- Author
- Richard Delorme
- Version
- 4.4
void * search_run |
( |
void * |
v | ) |
|
Search the bestmove of a given board.
this is a function runable within its own thread. The board is supposed to have been set (by search_set_board()), and all search options (level, time, etc.) too. this function proceeds to some internal initialisations and then call the iterative deepening function, from where the search is actually done. After the search ends, some finalizations are done before the function returns.
- Parameters
-
- Returns
- The search result.