Show the opening name during play and in PGN export
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
- Domínio
- full-stack
Direção de pesquisa
Start with js/notation.js for PGN export and js/game.js for the status display, then check index.html and sw.js for the UI and offline cache. Choose a licensed opening data source and match the played moves to its entries. Done when the longest match appears under the status line, persists after reload, is exported as ECO and Opening tags, and works offline.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Show the name of the opening being played, for example "Ruy Lopez", under the status line. Also write it into PGN exports as ECO and Opening tags.
Where
js/notation.js(PGN export; there is no opening data today)index.html(status area)sw.js(APP_FILES, the offline cache list)
Details
No opening data or label exists anywhere in the code. In js/, "opening" only appears in a comment in js/notation.js.
Impact
This is a cheap learning aid for casual players. It also gives context to the Past games list and to exported PGN.
Suggested fix
- Bundle a small ECO table (a few hundred lines keyed by SAN move sequence or FEN) as a static file.
- Add the file to
APP_FILESinsw.jsso it works offline. - Show the longest matching name under the status line.
- Write
ECOandOpeningtags in PGN export.
Open questions:
- Which source to use, and its license. The lichess
chess-openingsdataset is CC0. - Whether to keep showing the last matched name after the game leaves the book.
Acceptance criteria
- 1.e4 e5 2.Nf3 Nc6 3.Bb5 shows "Ruy Lopez" (or the table's name for it).
- The name survives a reload and appears in the downloaded PGN.
- It works offline.
Getting started
- Relevant files:
js/notation.js,js/game.js(status),index.html,sw.js - How to run tests:
npm test
Filed by repo-audit/full-audit at 01c6a35. Severity: low. Effort: S. audit-key: enhancement|js/notation.js|opening-name
- Linguagem predominante
- JavaScript
- Estrelas
- 4
- Forks
- 2
- Merge médio
- 22h 16min
- PRs com merge (30d)
- 9
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
TMHSDigital/Static_Chess#184 ·
Mantenedores costumam responder em até 1 dia
-
help wanted severity: medium tech-debt
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
TMHSDigital/Static_Chess#173 ·
Mantenedores costumam responder em até 1 dia
-
severity: medium tech-debt
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
TMHSDigital/Static_Chess#171 ·
Mantenedores costumam responder em até 1 dia
-
help wanted performance severity: medium
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 38/100
TMHSDigital/Static_Chess#168 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement help wanted severity: low
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 61/100
TMHSDigital/Static_Chess#161 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TMHSDigital/Static_Chess
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cytoscape/cytoscape.js#3597 ·
Mantenedores costumam responder em até 5 dias
-
priority: low server testing
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
blamechris/chroxy#9277 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
sunososobro-hub/cloudball#191 ·
Mantenedores costumam responder em até 1 dia
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
microsoft/playwright#44289 ·
Mantenedores costumam responder em até 1 dia
-
Wire ISO post: has() accepts text values such as an empty string, true or 0x1A for wire numbersAbertaarea:post effort:low enhancement P7 source:agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia