diff --git a/source/benchmark.cpp b/source/benchmark.cpp index 1f74ec4..db6e0a3 100644 --- a/source/benchmark.cpp +++ b/source/benchmark.cpp @@ -1,11 +1,12 @@ +#include +#include +#include #include "benchmark.h" #include "search.h" #include "stopwatch.h" #include "tt.h" -#include -#include -const std::array fenPositions = { +constexpr std::array fenPositions = { "rnbq1k1r/ppp1bppp/4pn2/8/2B5/2NP1N2/PPP2PPP/R1BQR1K1 b - - 2 8", "rnbq1k1r/pp2bppp/4pn2/2p5/2B2B2/2NP1N2/PPP2PPP/R2QR1K1 b - - 1 9", "r1bq1k1r/pp2bppp/2n1pn2/2p5/2B1NB2/3P1N2/PPP2PPP/R2QR1K1 b - - 3 10", @@ -60,7 +61,7 @@ const std::array fenPositions = { void RunBenchmark() { Board board; - int depth = 5; + int depth = 6; int ply = 0; benchStarted = true; searchStopped = false; @@ -76,7 +77,7 @@ void RunBenchmark() { Stopwatch sw; for (int i = 0; i < fenPositions.size(); i++) { - board.SetByFen(fenPositions[i].c_str()); + board.SetByFen(fenPositions[i]); PVS(board, depth, -inf, inf, ply); }