BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
Trace.hpp File Reference
#include <array>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <libbenbot/eval/Material.hpp>
#include <libbenbot/eval/Score.hpp>
#include <libbenbot/eval/TaperedScore.hpp>
#include <libbenbot/eval/Weights.hpp>
#include <libchess/pieces/Colors.hpp>
#include <utility>
Include dependency graph for Trace.hpp:

Go to the source code of this file.

Classes

struct  ben_bot::eval::CoeffTracer
struct  ben_bot::eval::NullTracer

Namespaces

namespace  ben_bot
namespace  ben_bot::eval
namespace  ben_bot::eval::phase_weights
namespace  chess
namespace  chess::game

Enumerations

enum class  ben_bot::eval::Color

Functions

auto ben_bot::eval::evaluate_traced (const Position &position) -> CoeffTracer

Variables

constexpr std::int32_t ben_bot::eval::MAX_PHASE = (phase_weights::QUEEN + (phase_weights::ROOK * 2) + (phase_weights::BISHOP * 2) + (phase_weights::KNIGHT * 2)) * 2
constexpr std::int32_t ben_bot::eval::phase_weights::BISHOP { 1 }
constexpr std::int32_t ben_bot::eval::phase_weights::KNIGHT { 1 }
constexpr std::int32_t ben_bot::eval::phase_weights::QUEEN { 4 }
constexpr std::int32_t ben_bot::eval::phase_weights::ROOK { 2 }

Detailed Description

This file defines the eval tracers, which record how many times each eval weight was applied, so that the eval can be rebuilt from the weights without the board.

Definition in file Trace.hpp.