Add progressive hints to practice problems
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
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, next.js, node.js
- Lĩnh vực
- backend, frontend, full-stack, testing
Hướng nghiên cứu
Read backend/arena/docs/problems.md and backend/arena/scripts/validate-problems.js to understand the problem format and validation, then trace how practice problems and battle payloads are assembled from frontend/pages/problems/[slug].js and frontend/pages/battle.js. Add and document optional hints, validate them, display them one at a time only in practice, and ensure battle responses omit them. Add examples for five problems and tests for validation and battle payloads; run npm test and node scripts/check-boundary.js.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Players who are stuck get nothing between the examples and giving up. Problems have no hints field today.
What to do
- Add an optional
hintsfield to the problem format: an array of short strings, from gentle nudge to near-solution. Document it inbackend/arena/docs/problems.md. - Teach
backend/arena/scripts/validate-problems.jsto accept it and reject empty or non-string hints. - In practice (
frontend/pages/problems/[slug].js), show a "Show hint" button that reveals one hint at a time. - Hints must not be available during ranked battles (
frontend/pages/battle.js). Make sure the backend does not send them to battle clients at all, not just hide them in the UI. - Write hints for at least five existing problems as examples.
Definition of done
- Hints appear one by one in practice and never in a battle response (check the network payload).
- Tests cover the validator and the battle payload.
npm testandnode scripts/check-boundary.jspass.
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 sennaicodes/codearena
-
Add issue and pull request templatesCó thể làm lại được @franciscorodr26 đã nhận 30 ngày trước và không có pull request nào đang mở. Đang mởdocumentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
sennaicodes/codearena#13 · 1 bình luận ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
sennaicodes/codearena#34 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
sennaicodes/codearena#33 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
sennaicodes/codearena#32 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
sennaicodes/codearena#31 ·
Tất cả issue của sennaicodes/codearena
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
scratchfoundation/scratch-editor#754 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 96/100
google/site-kit-wp#14102 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:growth priority:P1 type:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
tecnologiasantos/bogoboom#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
desktop docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
npm/write-file-atomic#245 ·