Show the opening name during play and in PGN export
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 58/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- full-stack
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 4
- Forks
- 2
- Ø Merge
- 22 Std. 16 Min.
- Gemergte PRs (30 T.)
- 9
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
TMHSDigital/Static_Chess#184 ·
Maintainer antworten meist innerhalb von 1 Tag
-
help wanted severity: medium tech-debt
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
TMHSDigital/Static_Chess#173 ·
Maintainer antworten meist innerhalb von 1 Tag
-
severity: medium tech-debt
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
TMHSDigital/Static_Chess#171 ·
Maintainer antworten meist innerhalb von 1 Tag
-
help wanted performance severity: medium
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 38/100
TMHSDigital/Static_Chess#168 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement help wanted severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 61/100
TMHSDigital/Static_Chess#161 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TMHSDigital/Static_Chess
Ähnliche Issues
-
priority: low server testing
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
blamechris/chroxy#9277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
microsoft/playwright#44289 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Ionaru/easy-markdown-editor#657 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
TMHSDigital/Free-Game-Dev-Assets#320 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:webapp bug finding
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag