Skip to content

Commit

Permalink
search: fix killer move index not being reset after clearing killer m…
Browse files Browse the repository at this point in the history
…oves
  • Loading branch information
e0ff committed Nov 25, 2023
1 parent 1a4ed41 commit 1381d00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/search/negamax.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ func (s *NegamaxSearcher) doSearch(position chess.Position, alpha int, beta int,
func (s *NegamaxSearcher) Reset() {
s.drawTable.Clear()
clear(s.killerMoves)
s.killerMoveIndex = 0
}

0 comments on commit 1381d00

Please sign in to comment.