added UCI: main loop and go command parser
This commit is contained in:
1 parent
1d6a9a8554
commit
8df4630bb4
4 files changed
+100
-6
No files matched your search
+3
-2
@@ -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';
|
||||
}
|
||||
Reference in new issue
Block a user