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

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

Public Member Functions

void clear ()
auto get (const size_t plyFromRoot) const noexcept -> std::span< const Move >
void store (const size_t plyFromRoot, const Move move)

Detailed Description

This structure stores killer moves collected during the search. This is essentially a set of lists of moves, indexed by ply from the root of the search.

Definition at line 43 of file KillerMoves.hpp.

Member Function Documentation

◆ clear()

void ben_bot::KillerMoves::clear ( )
inline

Clears all the stored moves.

Definition at line 45 of file KillerMoves.hpp.

◆ get()

auto ben_bot::KillerMoves::get ( const size_t plyFromRoot) const -> std::span< const Move >
inlinenodiscardnoexcept

Returns the killer moves for the given ply.

Definition at line 63 of file KillerMoves.hpp.

◆ store()

void ben_bot::KillerMoves::store ( const size_t plyFromRoot,
const Move move )
inline

Stores a killer move.

Definition at line 52 of file KillerMoves.hpp.


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