BenBot 1.7.5
A chess engine
Loading...
Searching...
No Matches
chess::uci::printing Namespace Reference

Classes

struct  Move
struct  SearchInfo

Functions

void best_move (Move bestMove, std::optional< Move > ponderMove)
void currline_info (std::span< const Move > line, std::optional< size_t > cpuNum=std::nullopt)
void currmove_info (Move currentMove, size_t moveNum)
std::monostate info_string (std::string_view info)
void refutation_info (Move move, std::span< const Move > refutation={ })
void search_info (const SearchInfo &info)

Detailed Description

This namespace contains utility functions for printing UCI-style [3] output.

Function Documentation

◆ currline_info()

void chess::uci::printing::currline_info ( std::span< const Move > line,
std::optional< size_t > cpuNum = std::nullopt )

Prints information about the current line being searched. cpuNum may be omitted if the engine is using just one CPU. In the multithreaded case, ideally all threads should send this information together. cpuNum should be a 1-based index.