Skip to content

Commit

Permalink
Fix nodes not reset
Browse files Browse the repository at this point in the history
Fix: total nodes searched not reset when calling Reset()
  • Loading branch information
Zong Zheng Li committed Feb 21, 2015
1 parent c7ba840 commit 7634301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Engine/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public Int32 GetMove(Position position) {
}

/// <summary>
/// Stops the search if applicable.
/// Stops the search if applicable.
/// </summary>
public void Stop() {
_abortSearch = true;
Expand All @@ -133,6 +133,7 @@ public void Reset() {
Array.Clear(_killerMoves[i], 0, _killerMoves[i].Length);
_finalAlpha = 0;
_rootAlpha = 0;
_totalNodes = 0;
}
}
}

0 comments on commit 7634301

Please sign in to comment.