Skip to main content

Module adapters

Module adapters 

Source
Expand description

Uniform engine adapters with effective-work observations.

Port of benchmarks/adapters.py: every adapter selects a move through the same timed, validated path and reports a MoveObservation whose JSON field names match the Python dataclasses.asdict output exactly, so result bundles stay schema-compatible.

Structs§

BeamAdapter
Beam search adapter.
MCTSAdapter
Monte Carlo tree search adapter.
MinimaxAdapter
Alpha-beta iterative deepening adapter.
MoveObservation
Effective work measured for one move selection. Serializes with the exact field names of the Python MoveObservation dataclass.
RandomAdapter
Uniform-random baseline adapter.
RawMetrics
Engine-specific metrics returned by EngineAdapter::select_raw.

Traits§

EngineAdapter
Uniform interface over the benchmarked engines.

Functions§

fixed_time_adapters
The fixed-time minimax, MCTS, and beam adapter family.
select
Time, validate, and record an engine call (port of EngineAdapter.select). Rust’s &Bitboard makes input mutation impossible by construction; legality and terminality are still checked.