BitBully 0.0.76
Loading...
Searching...
No Matches
BitBully::BitBully Class Reference

Public Member Functions

 BitBully (const std::filesystem::path &bookPath="")
bool isBookLoaded () const
void resetBook ()
bool loadBook (const std::filesystem::path &bookPath="")
int mtdf (const Board &b, const int firstGuess, const int maxDepth=-1) noexcept
int nullWindow (const Board &b, const int maxDepth=-1) noexcept
void resetTranspositionTable ()
auto getNodeCounter () const
void resetNodeCounter ()
int negamax (Board b, int alpha, int beta, const int depth, const int maxDepth=-1) noexcept
auto scoreMove (const Board &b, const int column, const int firstGuess, const int maxDepth=-1)
auto scoreMoves (const Board &b, const int maxDepth=-1)

Static Public Member Functions

static int scoreToMovesLeft (const int score, const Board &b) noexcept
static int rollout (Board b) noexcept

Detailed Description

Definition at line 14 of file BitBully.h.

Constructor & Destructor Documentation

◆ BitBully()

BitBully::BitBully::BitBully ( const std::filesystem::path & bookPath = "")
inlineexplicit

Definition at line 26 of file BitBully.h.

Member Function Documentation

◆ getNodeCounter()

auto BitBully::BitBully::getNodeCounter ( ) const
inlinenodiscard

Definition at line 149 of file BitBully.h.

◆ isBookLoaded()

bool BitBully::BitBully::isBookLoaded ( ) const
inline

Definition at line 33 of file BitBully.h.

◆ loadBook()

bool BitBully::BitBully::loadBook ( const std::filesystem::path & bookPath = "")
inline

Definition at line 37 of file BitBully.h.

◆ mtdf()

int BitBully::BitBully::mtdf ( const Board & b,
const int firstGuess,
const int maxDepth = -1 )
inlinenoexcept

Definition at line 101 of file BitBully.h.

◆ negamax()

int BitBully::BitBully::negamax ( Board b,
int alpha,
int beta,
const int depth,
const int maxDepth = -1 )
inlinenoexcept

Definition at line 153 of file BitBully.h.

◆ nullWindow()

int BitBully::BitBully::nullWindow ( const Board & b,
const int maxDepth = -1 )
inlinenoexcept

Definition at line 124 of file BitBully.h.

◆ resetBook()

void BitBully::BitBully::resetBook ( )
inline

Definition at line 35 of file BitBully.h.

◆ resetNodeCounter()

void BitBully::BitBully::resetNodeCounter ( )
inline

Definition at line 151 of file BitBully.h.

◆ resetTranspositionTable()

void BitBully::BitBully::resetTranspositionTable ( )
inline

Definition at line 144 of file BitBully.h.

◆ rollout()

int BitBully::BitBully::rollout ( Board b)
inlinestaticnoexcept

Definition at line 65 of file BitBully.h.

◆ scoreMove()

auto BitBully::BitBully::scoreMove ( const Board & b,
const int column,
const int firstGuess,
const int maxDepth = -1 )
inline

Definition at line 341 of file BitBully.h.

◆ scoreMoves()

auto BitBully::BitBully::scoreMoves ( const Board & b,
const int maxDepth = -1 )
inline

Definition at line 354 of file BitBully.h.

◆ scoreToMovesLeft()

int BitBully::BitBully::scoreToMovesLeft ( const int score,
const Board & b )
inlinestaticnoexcept

Convert a solver score to the number of moves until the game ends.

Parameters
scoreThe solver score (positive = current player wins, negative = current player loses, 0 = draw).
bThe board state for which the score was computed.
Returns
Number of moves until the game concludes under perfect play.

Definition at line 54 of file BitBully.h.


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