From 15676a09e058390fd9af0bdd3ab186f9ad3883ea Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 9 Mar 2025 04:42:54 +0100 Subject: [PATCH] counting nodes on MakeMove | bench 4096824 --- source/board.cpp | 1 + source/search.cpp | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/source/board.cpp b/source/board.cpp index f09aa42..b531a49 100644 --- a/source/board.cpp +++ b/source/board.cpp @@ -334,6 +334,7 @@ void Board::Promote(int square, int pieceType, int color, bool isCapture) { } void Board::MakeMove(Move move) { + nodes++; // Null Move if (!move) { diff --git a/source/search.cpp b/source/search.cpp index cca5501..45d99cc 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -94,8 +94,6 @@ static SearchResults Quiescence(Board board, int alpha, int beta) { } } - nodes++; - int staticScore = Evaluate(board); int bestScore = alpha; @@ -190,8 +188,6 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) { int score = -inf; int nodeType = AllNode; - nodes++; - GenerateMoves(board, board.sideToMove); SortMoves(board);