Neon Crates: warn when a crate is stuck and offer a hint from the solver
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
- 48/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ệ
- typescript
Hướng nghiên cứu
Read games/crates/solver.ts and games/crates/rules.ts, then trace pushes and solved-state checks in games/crates/scenes/GameScene.ts:166-220. Run npm test and review the late levels in games/crates/levels.ts:175-190. Done means a push onto a non-live cell warns the player and tests cover live-cell checks; hint behavior and its open design questions 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
Neon Crates gives no warning when a crate is pushed somewhere it can never leave, and has no hint. The solver that could provide both already exists in the repo, though only the tests use it.
Where
games/crates/solver.ts:3-5("used by the tests ... Not loaded by the game"),:31-47(liveCells),:131(solve)games/crates/scenes/GameScene.ts:166-220(step: moves and checkssolved, nothing else)games/crates/levels.ts:175-190(late levels with par 50 and 68)
Details
liveCells(level) returns the cells from which a crate can still reach a target. solve(level) finds the fewest-moves path. Neither is used by the scene. The only way out of an unwinnable position is repeated UNDO or RESTART, with no sign that the position is already lost.
Proposal
- Dead-crate warning (cheap): compute
liveCellsonce per level. When a push lands a crate on a cell that is not live, tint the crate red, play a short buzz and show an "UNDO?" banner. This means movingliveCellsintorules.tsor bundlingsolver.ts. - Hint: give
solvean optional start state and a node limit, and add a HINT action. It flashes the next push direction, or shows "NO SOLUTION FROM HERE".
Who benefits
Players on the harder levels, who otherwise push for dozens of moves after a crate is already stuck and then give up. Touch players have only the UNDO and RESTART buttons today.
Open questions
- Should hints be free, limited per level, or block the par trophy?
- Should a hint search run in a Worker on large levels?
Acceptance criteria
- Pushing a crate into a non-target corner shows the warning.
- Unit tests cover the live-cell check on several levels.
Getting started
- Relevant files:
games/crates/solver.ts,games/crates/rules.ts,games/crates/scenes/GameScene.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at a93de2e. Severity: medium. Effort: M. audit-key: enhancement|games/crates/scenes/GameScene.ts|hint
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 3
- Merge trung bình
- 10 giờ 22 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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/GH-Arcade
-
good first issue performance severity: low
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
TMHSDigital/GH-Arcade#141 ·
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 55/100
TMHSDigital/GH-Arcade#139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted severity: medium
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
TMHSDigital/GH-Arcade#127 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a game speed assist settingĐang mởaccessibility enhancement severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
TMHSDigital/GH-Arcade#114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
TMHSDigital/GH-Arcade#113 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TMHSDigital/GH-Arcade
Issue tương tự
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openclaw/openclaw#203385 · 1 bình luận · 1 reaction ·
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 72/100
nwverse/persona#12800 · 1 bình luận ·
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 80/100
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
-
good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày