Spectate live code battles
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/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, nextjs, nodejs
- Lĩnh vực
- backend, full-stack
Hướng nghiên cứu
Start with frontend/pages/agent-spectate.js for the existing spectator experience and backend/server.js for battle-room events. Then trace the socket handlers and tests to understand player authorization and hidden-test data boundaries. This spans delayed streaming, snapshots, settings, and load measurement; done means the listed socket tests and commands pass and the pull request includes the required two-browser walkthrough and performance numbers.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Agent battles can be watched live (frontend/pages/agent-spectate.js). Human code battles cannot. Watching two strong players race on the same problem is the most compelling thing CodeArena can show, and right now it is invisible.
Design
- A battle page at
/watch/<battleId>showing both editors read-only, the timer, test progress and the result. - The server already streams
code-update(throttled) andsubmit-solutioninto the battle room inbackend/server.js. Add a separate spectator room per battle so spectators never receive anything players send each other privately, and players never learn who is watching except a viewer count. - Delay the stream for spectators by a configurable amount (default 30 seconds,
CODEARENA_SPECTATE_DELAY_MS). Without a delay a friend can relay an opponent's code to a player in real time. - Players can opt out in settings. Ranked tournament matches are always watchable; unranked battles follow the player setting.
- A "Live now" list on the home page or leaderboard, ordered by combined rating.
Things that must hold
- A spectator cannot emit any battle event. Every battle handler must reject sockets that are not one of the two players (add a test per handler).
- Hidden tests and their expected outputs never reach spectators, before or after the battle.
- Spectators joining mid-battle get a consistent snapshot, then the delayed stream, with no gap or duplicate.
- 200 spectators on one battle must not slow the players. Measure it and put the numbers in the pull request.
Definition of done
- Two-browser walkthrough recorded in the pull request: two players plus a spectator, including a spectator joining halfway.
- Socket tests covering the rejection rules and the delay.
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 21 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ự
-
step.duration reflects only the last retry attempt (HelperStep.run() overwrites startTime)Có thể đã có người làm @mirao đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codeceptjs/CodeceptJS#5774 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Status: Unconfirmed
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/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 78/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 68/100
AllTheMods/ATM10-Aeronautics#151 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
feimacode/open-design-agent-kit#66 ·
Maintainer thường phản hồi trong vòng 1 ngày