Module inanis::engine::search::movepick

source ·

Structs§

Enums§

Constants§

Functions§

  • Assigns capture scores for moves by filling move_scores array with moves_count length (starting from start_index), based on current context. If transposition table move is available, it’s passed as tt_move too. Moves are prioritized as follows (from most important to the less ones):
  • Assigns quiet scores for moves by filling move_scores array with moves_count length (starting from start_index), based on current context. If transposition table move is available, it’s passed as tt_move too. Moves are prioritized as follows (from most important to the less ones):
  • Gets a next move to analyze. This function acts as pseudo-iterator and takes care about managing move generator stages, which is basically a state machine (https://en.wikipedia.org/wiki/Finite-state_machine) with following rules: