fn assign_capture_scores(context: &SearchContext, state: &mut MoveGenState)Expand description
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):
- for transposition table move, assign MOVEORD_HASH_MOVE
- for every positive capture, assign SEE score + MOVEORD_WINNING_CAPTURES_OFFSET
- for every negative capture, assign SEE score + MOVEORD_LOSING_CAPTURES_OFFSET