BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
ben_bot::TTData Struct Referencefinal

#include <libbenbot/data-structures/TranspositionTable.hpp>

Public Member Functions

constexpr auto operator== (const TTData &other) const noexcept -> bool=default

Public Attributes

std::optional< MovebestMove
eval::Value eval { UINT16_C(0) }
EvalType evalType { EvalType::Alpha }
size_t searchedDepth { 0uz }

Detailed Description

This POD struct contains the data stored in the transposition table for a position. The data is returned from the table by copy.

Definition at line 66 of file TranspositionTable.hpp.

Member Function Documentation

◆ operator==()

auto ben_bot::TTData::operator== ( const TTData & other) const -> bool=default
constexprdefaultnoexcept

Member Data Documentation

◆ bestMove

std::optional<Move> ben_bot::TTData::bestMove

If a conclusive best move was found in this position, it is stored here. Sometimes this may be nullopt if everything failed low (i.e. score <= alpha).

Definition at line 82 of file TranspositionTable.hpp.

◆ eval

eval::Value ben_bot::TTData::eval { UINT16_C(0) }

The evaluation of this position. See evalType to determine the exact meaning of this value.

Definition at line 73 of file TranspositionTable.hpp.

◆ evalType

EvalType ben_bot::TTData::evalType { EvalType::Alpha }

Gives the exact meaning of the eval value.

Definition at line 76 of file TranspositionTable.hpp.

◆ searchedDepth

size_t ben_bot::TTData::searchedDepth { 0uz }

The depth that the position was searched to.

Definition at line 68 of file TranspositionTable.hpp.


The documentation for this struct was generated from the following file: