mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 16:47:37 +00:00
[tools] Fix castling moves counting towards # captures in gather_statistics (#4283)
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@ namespace Stockfish::Tools::Stats
|
|||||||
{
|
{
|
||||||
m_total += 1;
|
m_total += 1;
|
||||||
|
|
||||||
if (!pos.empty(to_sq(move)))
|
if (!pos.empty(to_sq(move)) && type_of(move) != CASTLING)
|
||||||
m_capture += 1;
|
m_capture += 1;
|
||||||
|
|
||||||
if (type_of(move) == CASTLING)
|
if (type_of(move) == CASTLING)
|
||||||
|
|||||||
Reference in New Issue
Block a user