Skip to content

Commit

Permalink
perft: don't use Position.MakeUciMove in perft
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ff committed Nov 28, 2023
1 parent 147383d commit 4f03988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/perft/perft.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Perft(position chess.Position, depth int, print bool) uint64 {
var nodes uint64 = 0
moves := position.GenerateMoves(chess.LegalMoveGeneration)
for _, move := range moves {
err := position.MakeUciMove(move.String())
err := position.MakeMove(move)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 4f03988

Please sign in to comment.