Custom time controls
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
- 56/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
Rechercherichtung
Start with js/config.js and index.html to see how the existing presets populate #clock-select, then follow the selection handling in js/main.js and clock startup in js/clock.js. Read tests/unit/clock.test.js and run npm ci && npm test to understand current validation. Done when custom controls persist across reloads, invalid values cannot start the clock, and the tests cover the new behavior; bounds and PGN formatting still need decisions.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
The clock offers only five fixed presets (1+0, 3+2, 5+0, 10+0, 15+10). Common controls such as 3+0, 5+3 or 30+0, and odds games, cannot be chosen.
Where
js/config.js:18-25(TIME_CONTROLS)index.html:166(#clock-select)
Proposal
Add a "Custom..." option to #clock-select that shows two number inputs (minutes, increment seconds), validated and stored as custom:M+I in the time-control setting. Optionally, a per-side minutes field for odds games.
Who benefits
Players who want a longer game, or an odds game against a stronger friend.
Open questions
- Bounds (e.g. 1 to 180 minutes, 0 to 60 seconds increment).
- How a custom control is written to the PGN
TimeControltag.
Acceptance criteria
- A custom control is kept across reloads and validated by
validateSavedGame - Invalid input cannot start a clock
- Tests in
tests/unit/clock.test.js
Getting started
- Relevant files:
js/config.js,js/main.js,js/clock.js,index.html - How to run tests:
npm ci && npm test
Filed by repo-audit/full-audit at 73cd279. Severity: low. Effort: M. audit-key: enhancement|js/config.js|TIME_CONTROLS
- 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
-
enhancement help wanted severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
TMHSDigital/Static_Chess#182 ·
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
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