Custom time controls
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 4
- Fork
- 2
- Merge trung bình
- 22 giờ 16 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
TMHSDigital/Static_Chess#184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
TMHSDigital/Static_Chess#182 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted severity: medium tech-debt
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
TMHSDigital/Static_Chess#173 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
severity: medium tech-debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
TMHSDigital/Static_Chess#171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted performance severity: medium
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
TMHSDigital/Static_Chess#168 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TMHSDigital/Static_Chess
Issue tương tự
-
priority: low server testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
blamechris/chroxy#9277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/playwright#44289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Ionaru/easy-markdown-editor#657 ·
-
[source] Camera Blocking StageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
TMHSDigital/Free-Game-Dev-Assets#320 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:webapp bug finding
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày