Skip to main content

Module evaluation

Module evaluation 

Source
Expand description

Fitted-linear handcrafted evaluation for non-terminal Quantik positions.

Scores a position as the dot product of a small, hand-designed feature vector and a fitted weight vector (EvalConfig::weights). features is a pure function of (bb, player). Port of the Python quantik_core.evaluation module; feature semantics must stay identical so fitted weights remain interchangeable between implementations.

Structs§

EvalConfig
Weights for the fitted-linear evaluation and the terminal win bonus.

Constants§

FEATURE_NAMES
Feature vector layout produced by features, in order.

Functions§

count_legal_moves
Count player’s legal moves, 0 if it is not player’s turn.
evaluate
Score a non-terminal position as cfg.weights · features(bb, player).
features
Compute the 6-dimensional handcrafted feature vector for bb.