Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getlegalmoves nonalloc #3

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Getlegalmoves nonalloc #3

wants to merge 3 commits into from

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Jul 28, 2023

I must be messing something up, search is super slow with this change


Edit.

Spolier: I was

See https://github.com/lynx-chess/Lynx/pull/301/files

        Array.Sort(moves, (moveA, moveB) =>
        {
            var scoreA = ScoreMove(moveA, ply, true, bestMoveTTCandidate);
            var scoreB = ScoreMove(moveB, ply, true, bestMoveTTCandidate);

            return scoreA == scoreB ? 0 : (scoreA > scoreB ? -1 : 1);
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant