BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
ben_bot::eval::detail Namespace Reference

Functions

consteval auto compute_term_offsets () -> std::array< size_t, NUM_TERMS+1uz >
template<bool IncludePawns = true>
constexpr auto count_material (const chess::board::Pieces &pieces) noexcept -> Value
consteval auto S (const int mg, const int eg) noexcept -> TaperedScore

Variables

constexpr auto TERM_OFFSETS = compute_term_offsets()

Function Documentation

◆ compute_term_offsets()

auto ben_bot::eval::detail::compute_term_offsets ( ) -> std::array< size_t, NUM_TERMS+1uz >
nodiscardconsteval

Definition at line 163 of file Weights.hpp.

◆ count_material()

template<bool IncludePawns = true>
auto ben_bot::eval::detail::count_material ( const chess::board::Pieces & pieces) -> Value
nodiscardconstexprnoexcept

Definition at line 115 of file Material.hpp.

◆ S()

auto ben_bot::eval::detail::S ( const int mg,
const int eg ) -> TaperedScore
nodiscardconstevalnoexcept

Definition at line 33 of file DefaultWeights.hpp.

Variable Documentation

◆ TERM_OFFSETS

auto ben_bot::eval::detail::TERM_OFFSETS = compute_term_offsets()
inlineconstexpr

Definition at line 178 of file Weights.hpp.