mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix perft 1
Compute correct number of moves for this corner case. A smal bug crept in after recent perft rework. No functional change.
This commit is contained in:
parent
a903ed07e0
commit
8b8885ab07
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ uint64_t Search::perft(Position& pos, Depth depth) {
|
||||||
for (MoveList<LEGAL> it(pos); *it; ++it)
|
for (MoveList<LEGAL> it(pos); *it; ++it)
|
||||||
{
|
{
|
||||||
if (Root && depth <= ONE_PLY)
|
if (Root && depth <= ONE_PLY)
|
||||||
cnt = 1;
|
cnt = 1, nodes++;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pos.do_move(*it, st, ci, pos.gives_check(*it, ci));
|
pos.do_move(*it, st, ci, pos.gives_check(*it, ci));
|
||||||
|
|
Loading…
Add table
Reference in a new issue