From 9702738db498cba05e7605afe1f48672f530e1a9 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 15 Aug 2026 21:08:30 +0200 Subject: removing maximum depth now insted we are gonna just have constant thinging time of 7 seconds for now if no time controls are speficied --- src/main.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 09cb4d1..ade22c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,19 +18,14 @@ static void perft(int argc, char *argv[]) { exit(1); } - int depth = -1; + uint32_t depth = 0; try { - depth = std::stoi(argv[2]); + depth = static_cast(std::stoi(argv[2])); } catch (const std::exception &) { std::cout << "info string usage: ./mono perft \n"; exit(1); } - if (depth < 0) { - std::cout << "info string usage: ./mono perft \n"; - exit(1); - } - std::string fen = argv[3]; auto start = std::chrono::steady_clock::now(); -- cgit v1.2.3