Skip to content

fix(openings): prefer PGN headers and improve transposition handling - #8

Merged
mik0lajek merged 1 commit into
mainfrom
refactor/opening-detection-fen
May 4, 2026
Merged

fix(openings): prefer PGN headers and improve transposition handling#8
mik0lajek merged 1 commit into
mainfrom
refactor/opening-detection-fen

Conversation

@mik0lajek

Copy link
Copy Markdown
Owner
  • prioritize PGN Opening and ECO headers during enrichment
  • add side-aware transposition fallback for move-based detection
  • avoid returning shallow early matches when deeper matches are available

test(openings): add coverage for header priority and QGD transpositions

  • add tests for PGN header-based opening detection
  • cover transposed lines (d4 e6 c4 d5 vs d4 d5 c4 e6)
  • extend parser and enrichment test cases

docs(readme): document updated opening detection behavior

  • describe PGN header priority over move-based detection
  • explain fallback detection and transposition handling

- prioritize PGN Opening and ECO headers during enrichment
- add side-aware transposition fallback for move-based detection
- avoid returning shallow early matches when deeper matches are available

test(openings): add coverage for header priority and QGD transpositions

- add tests for PGN header-based opening detection
- cover transposed lines (d4 e6 c4 d5 vs d4 d5 c4 e6)
- extend parser and enrichment test cases

docs(readme): document updated opening detection behavior

- describe PGN header priority over move-based detection
- explain fallback detection and transposition handling
@mik0lajek
mik0lajek merged commit 553e5e9 into main May 4, 2026
4 checks passed
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