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) }