Files
Eleanor/source/uci.h
T
2025-03-12 18:33:23 +01:00

25 lines
520 B
C++

#pragma once
#include "move.h"
#include "board.h"
class SearchParams {
public:
int wtime = 0;
int btime = 0;
int winc = 0;
int binc = 0;
int movesToGo = 0;
SearchParams(){}
};
// Initializes the position with given parameters
void ParsePosition(Board &board, std::string_view command);
// Parse UCI "go" command
// GUI sends the engine this command if it should start searching for the best move
void ParseGo(Board &board, std::string &command);
// main UCI loop
void UCILoop(Board &board);