added Iterative Deepening with very basic time management

This commit is contained in:
rektdie committed 2024-10-14 15:07:58 +02:00
1 parent abe07eb844
commit fde3e281b0
4 files changed
+87 -19

No files matched your search

+13 -2
View File
@@ -2,6 +2,17 @@
#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(){}
};
// Returns Move object from a string
Move ParseMove(Board &board, const char* moveString);
@@ -10,7 +21,7 @@ void ParsePosition(Board &board, const char* command);
// Parse UCI "go" command
// GUI sends the engine this command if it should start searching for the best move
void ParseGo(Board &board, const char* command);
void ParseGo(Board &board, std::string &command);
// main UCI loop
void UCILoop(Board &board);
void UCILoop(Board &board);