io-chess
UCI chess engine
Loading...
Searching...
No Matches
UciOptions Struct Reference

Holds all configurable engine parameters. More...

#include <UciOptions.h>

Collaboration diagram for UciOptions:

Public Member Functions

void printOptions () const
 Prints all standard options to standard output.
void setOption (const std::string &name, const std::string &value, UciProtocol *uci)
 Parses a single option and applies it.

Public Attributes

std::string modelPath
 Path to neural network weights.
std::string tbPath
 Path to Syzygy tablebases.
std::string bookPath
 Path to primary Polyglot opening book.
std::string bookPath2
 Path to secondary Polyglot opening book.
size_t hashSizeMB = 128
 Transposition table size in MB.
int numThreads = 1
 Number of search threads (Lazy SMP).
int evalThreads = 0
 Number of eval threads (0 = Auto).
bool useMCTS = false
 True to use MCTS, false for Alpha-Beta.
bool useSimpleEval = false
 True to fallback to non-neural evaluation.
bool useBook = true
 True to use opening books.
bool analyseMode = false
 True if analyzing (disables time management).
bool chess960 = false
 True if playing Chess960 (Fischer Random).
float aggression = 0.0f
 Playstyle aggression modifier.
int lazyEvalMaxDepth = 6
 Maximum depth to use lazy eval.
int lazyEvalBaseMargin = 500
 Static evaluation margin.
int lazyEvalDepthMargin = 100
 Depth scaling margin.
bool enableLazyEval = true
 True to enable lazy evaluation.
int evalScaleBase = 750
 Base scale for centipawn conversion.
int evalScaleWeight = 25
 Weight scalar for evaluation.
bool enableEvalNormalization = true
 Normalizes scores.
int nativeRebuildEveryNEvals = 0
 Incremental MoE rebuild interval.
SearchSharedData::SearchConfig searchConfig
 Search-specific heuristics configuration.
bool exportTree = false
 True to export the search tree (debug).
int exportTreeDepth = 4
 Depth limit for tree export.
bool autoSaveTTSnapshots = false
 True to automatically save TT.
std::string ttSnapshotDir = "tt_snapshots"
 Directory for TT snapshots.

Detailed Description

Holds all configurable engine parameters.

Member Function Documentation

◆ printOptions()

void UciOptions::printOptions ( ) const

Prints all standard options to standard output.

◆ setOption()

void UciOptions::setOption ( const std::string & name,
const std::string & value,
UciProtocol * uci )

Parses a single option and applies it.

Triggers side effects via the UciProtocol pointer if needed (e.g. resizing hash).

Parameters
nameThe name of the option.
valueThe value of the option.
uciPointer to the UCI controller.
Here is the call graph for this function:

Member Data Documentation

◆ aggression

float UciOptions::aggression = 0.0f

Playstyle aggression modifier.

◆ analyseMode

bool UciOptions::analyseMode = false

True if analyzing (disables time management).

◆ autoSaveTTSnapshots

bool UciOptions::autoSaveTTSnapshots = false

True to automatically save TT.

◆ bookPath

std::string UciOptions::bookPath

Path to primary Polyglot opening book.

◆ bookPath2

std::string UciOptions::bookPath2

Path to secondary Polyglot opening book.

◆ chess960

bool UciOptions::chess960 = false

True if playing Chess960 (Fischer Random).

◆ enableEvalNormalization

bool UciOptions::enableEvalNormalization = true

Normalizes scores.

◆ enableLazyEval

bool UciOptions::enableLazyEval = true

True to enable lazy evaluation.

◆ evalScaleBase

int UciOptions::evalScaleBase = 750

Base scale for centipawn conversion.

◆ evalScaleWeight

int UciOptions::evalScaleWeight = 25

Weight scalar for evaluation.

◆ evalThreads

int UciOptions::evalThreads = 0

Number of eval threads (0 = Auto).

◆ exportTree

bool UciOptions::exportTree = false

True to export the search tree (debug).

◆ exportTreeDepth

int UciOptions::exportTreeDepth = 4

Depth limit for tree export.

◆ hashSizeMB

size_t UciOptions::hashSizeMB = 128

Transposition table size in MB.

◆ lazyEvalBaseMargin

int UciOptions::lazyEvalBaseMargin = 500

Static evaluation margin.

◆ lazyEvalDepthMargin

int UciOptions::lazyEvalDepthMargin = 100

Depth scaling margin.

◆ lazyEvalMaxDepth

int UciOptions::lazyEvalMaxDepth = 6

Maximum depth to use lazy eval.

◆ modelPath

std::string UciOptions::modelPath

Path to neural network weights.

◆ nativeRebuildEveryNEvals

int UciOptions::nativeRebuildEveryNEvals = 0

Incremental MoE rebuild interval.

◆ numThreads

int UciOptions::numThreads = 1

Number of search threads (Lazy SMP).

◆ searchConfig

SearchSharedData::SearchConfig UciOptions::searchConfig

Search-specific heuristics configuration.

◆ tbPath

std::string UciOptions::tbPath

Path to Syzygy tablebases.

◆ ttSnapshotDir

std::string UciOptions::ttSnapshotDir = "tt_snapshots"

Directory for TT snapshots.

◆ useBook

bool UciOptions::useBook = true

True to use opening books.

◆ useMCTS

bool UciOptions::useMCTS = false

True to use MCTS, false for Alpha-Beta.

◆ useSimpleEval

bool UciOptions::useSimpleEval = false

True to fallback to non-neural evaluation.


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