Skip to content

chore: standardise tooling; cut move-get allocations and expose Perft#11

Merged
danielriddell21 merged 23 commits into
trunkfrom
chore/repo-consistency-audit-u0gd85
Jul 1, 2026
Merged

chore: standardise tooling; cut move-get allocations and expose Perft#11
danielriddell21 merged 23 commits into
trunkfrom
chore/repo-consistency-audit-u0gd85

Conversation

@danielriddell21

Copy link
Copy Markdown
Owner

No description provided.

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Generate pseudo-legal moves into the caller's buffer and filter them in place so
GenerateMoves no longer allocates a throwaway slice on every call, and have the
greedy agent make/unmake moves instead of cloning the board per candidate. Move
the exported Perft out of the _test.go file into perft.go so importers can use
it, add BenchmarkMovegen/BenchmarkPerft, document the Board make/unmake vs apply
mutability contract, and range over the board squares in the Each helper.
@danielriddell21
danielriddell21 force-pushed the chore/repo-consistency-audit-u0gd85 branch from 5adfebf to 6905a5e Compare July 1, 2026 17:52
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@danielriddell21 danielriddell21 changed the title tidy chore: standardise tooling; cut move-get allocations and expose Perft Jul 1, 2026
@danielriddell21
danielriddell21 merged commit 2766dc8 into trunk Jul 1, 2026
10 checks passed
@danielriddell21
danielriddell21 deleted the chore/repo-consistency-audit-u0gd85 branch July 1, 2026 18:23
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