added UCI: main loop and go command parser

This commit is contained in:
rektdie committed 2024-05-05 20:31:33 +02:00
1 parent 1d6a9a8554
commit 8df4630bb4
4 files changed
+100 -6

No files matched your search

+3 -2
View File
@@ -54,6 +54,7 @@ Move NegaMaxHandler(Board &board, int depth) {
}
void SearchPosition(Board &board, int depth) {
std::cout << "best move: ";
NegaMaxHandler(board, depth).PrintMove();
Move bestMove = NegaMaxHandler(board, depth);
std::cout << "bestmove " << squareCoords[bestMove.MoveFrom()]
<< squareCoords[bestMove.MoveTo()] << '\n';
}