diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-02 15:15:45 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-02 15:15:45 +0200 |
| commit | 08c0a181d6e5beb6848fe278dfb421fbcb4e3aba (patch) | |
| tree | 00c32b9ae97b189cf8d64e6f01ba93c4ae1c8860 /src/uci.cpp | |
| parent | 26f5b9cc34633c5dd8c7f61c6751c43c63f30bc4 (diff) | |
adding colored piece bitboards
Diffstat (limited to 'src/uci.cpp')
| -rw-r--r-- | src/uci.cpp | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/src/uci.cpp b/src/uci.cpp index f099b78..94e5693 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -1,26 +1,25 @@ -#include "uci.hpp" -#include "board/board.hpp" -#include "board/fen.hpp" -#include "bot.hpp" -#include "misc.hpp" -#include "moves.hpp" -#include "zobrist.hpp" - #include <algorithm> #include <cassert> #include <cctype> +#include <chrono> #include <cstdint> #include <cstdio> #include <cstdlib> +#include <fstream> +#include <iomanip> #include <iostream> #include <sstream> #include <string> - -#include <chrono> -#include <fstream> -#include <iomanip> #include <unordered_map> +#include "board/board.hpp" +#include "board/fen.hpp" +#include "bot.hpp" +#include "misc.hpp" +#include "moves.hpp" +#include "uci.hpp" +#include "zobrist.hpp" + std::ofstream uciLog("cache/uci_log.txt", std::ios::app); void LogUci(const std::string &message) { @@ -210,9 +209,18 @@ void Uci() { cout.flush(); continue; } + + auto start = std::chrono::steady_clock::now(); + uint64_t count = MoveGenTest(depth, &game); + auto end = std::chrono::steady_clock::now(); + auto ms = + std::chrono::duration_cast<std::chrono::milliseconds>(end - start) + .count(); + std::cout << ms << " ms\n"; cout << count << "\n"; + cout.flush(); } } |
