|
BenBot 1.7.5
A chess engine
|
#include <libbenbot/eval/Score.hpp>
Public Types | |
| using | LibchessScore = chess::uci::printing::SearchInfo::Score |
Public Member Functions | |
| constexpr | operator Value () const noexcept |
| constexpr auto | operator- () const noexcept -> Score |
| auto | to_libchess () const noexcept -> LibchessScore |
| constexpr auto | to_tt () const noexcept -> Value |
Mate queries | |
| auto | is_mate () const noexcept -> bool |
| constexpr auto | is_winning_mate () const noexcept -> bool |
| constexpr auto | is_losing_mate () const noexcept -> bool |
| auto | ply_to_mate () const noexcept -> size_t |
Static Public Member Functions | |
| static constexpr auto | from_tt (Value eval, size_t plyFromRoot) noexcept -> Score |
| static constexpr auto | mate (const size_t plyFromRoot) noexcept -> Score |
Public Attributes | |
| Value | value { UINT16_C(0) } |
An evaluation score. This is essentially a wrapper around an integer value, with a few helper methods.
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinestaticnodiscardconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
nodiscardconstexprnoexcept |
| Value ben_bot::eval::Score::value { UINT16_C(0) } |