diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-01 19:18:56 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-01 19:18:56 +0200 |
| commit | cfe75795ef5f3afb384760affdb746eb4b0f41f7 (patch) | |
| tree | bb11b468a0e24033cc7d2b2a74f970dafa64a71e /src/bot.cpp | |
| parent | 69252d4de9b5cc9c27c7e4815277d577a13e1be1 (diff) | |
removing openning book
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index 193e487..fea8784 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -2,7 +2,6 @@ #include "board/board.hpp" #include "evaluate.hpp" #include "moves.hpp" -#include "opening_book.hpp" #include "zobrist.hpp" #include <algorithm> @@ -10,9 +9,11 @@ #include <chrono> #include <cmath> #include <cstdint> +#include <cstdlib> #include <ctime> #include <iostream> #include <iterator> +#include <print> #include <vector> constexpr int MAXIMUM_DEPTH = 6; @@ -253,9 +254,6 @@ static void PrintInfo(const int depth, const int engineScore, Move GetBestMove(Game *b, const int maxDepth) { Nodes = 0; - Polyglot_Book book; - book.Load("book.bin"); - int actualDepth = maxDepth > 0 ? maxDepth : MAXIMUM_DEPTH; bool usingDefaultDepth = actualDepth == MAXIMUM_DEPTH; auto legalMoves = GetSortedLegalMoves(b, true, nullptr); @@ -273,11 +271,6 @@ Move GetBestMove(Game *b, const int maxDepth) { int depth = 1; while (continueSearching) { - if (book.HasMove(*b)) { - bestMove = book.GetMove(*b); - continueSearching = false; - break; - } SearchResult result = SearchDepth(b, depth, &bestMove); bestMove = result.bestMove; |
