Repository navigation
[search-material] The Material page of the search dialog - #16
Open
tuliovianna-lab wants to merge 2 commits into
Open
tuliovianna-lab wants to merge 2 commits into
tuliovianna-lab wants to merge 2 commits into
Conversation
Counts per side (Q, R, B, N, P, minor pieces, total), the pawn boxes and their negations, ignore colours, difference, total, the bishop and pawn structure boxes, and Length / Last, replayed on the main line through a Tracker now generic over the page it follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Total counts the king and the pieces, not the pawns; Backward includes isolated pawns; Blocked is refused (no reading matched ChessBase). The replay sink keeps its verdict in two flags so the per-token poll stays as cheap as before. Adds the OpenSpec change, the search guide section with the ChessBase counts, provenance, changelog and benchmark entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the "Material" page of ChessBase's search dialog, following the architecture of the "Position" page (#11/#12).
What it does
GameDataQuery::materialtakes aMaterialQuery:!forms;Length/Last(defaults 1 / 999).Trackeris now generic over a smallPredicatetrait (Patternand the newMaterialimplement it); the position search's behaviour is unchanged;Unsupported, like "Sacrifice":--white-material "Q0 R1 P0..8",--black-material,--white-pawns "isolated,!passed",--black-pawns,--material-flags …,--material-length,--material-last,--material-from-fen("Position Setup").--move-numberingnow applies to both pages.Semantics and evidence
The meaning of each box comes from ChessBase's public help. Where the help is silent, counts were measured with ChessBase on Mega Database 2026 (Length 1, Last 999):
What the measurements settled:
Details are in
docs/search.md.Performance (Mega Database 2026, release)
Checks
cargo fmt --check,cargo clippy --all-targets --all-features -D warningsandcargo test --workspace --all-featurespass.tests/query_material.rs);search-material, CHANGELOG and provenance.🤖 Generated with Claude Code