|
BenBot 1.7.5
A chess engine
|
#include <libchess/game/ThreefoldChecker.hpp>
Public Types | |
| using | HashValue = std::uint64_t |
Public Member Functions | |
| constexpr auto | is_threefold () const noexcept -> bool |
| constexpr void | push (HashValue newHash) |
| constexpr void | reset (HashValue initialPositionHash) |
This struct keeps a history of Zobrist hash values to detect threefold repetitions.
Definition at line 33 of file ThreefoldChecker.hpp.
| using chess::game::ThreefoldChecker::HashValue = std::uint64_t |
Definition at line 34 of file ThreefoldChecker.hpp.
|
nodiscardconstexprnoexcept |
Returns true if the last call to push() created a threefold repetition in the history.
Definition at line 92 of file ThreefoldChecker.hpp.
|
constexpr |
Pushes a new hash value into the history.
Definition at line 76 of file ThreefoldChecker.hpp.
|
constexpr |
Clears the history, inserting a single hash value.
Definition at line 70 of file ThreefoldChecker.hpp.