From 4f03988eec57dcc54c9adf1350ca44795dd9d4ba Mon Sep 17 00:00:00 2001 From: Jeremy Hertel Date: Mon, 27 Nov 2023 21:13:25 -0600 Subject: [PATCH] perft: don't use Position.MakeUciMove in perft --- internal/perft/perft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/perft/perft.go b/internal/perft/perft.go index 1665aa4..ca8c373 100644 --- a/internal/perft/perft.go +++ b/internal/perft/perft.go @@ -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) }