Neon Crates: warn when a crate is stuck and offer a hint from the solver
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 3
- Fork
- 3
- Merge medio
- 10h 22m
- PR unite (30g)
- 6
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/GH-Arcade
-
good first issue performance severity: low
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
TMHSDigital/GH-Arcade#141 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
TMHSDigital/GH-Arcade#139 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted severity: medium
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
TMHSDigital/GH-Arcade#127 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility enhancement severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
TMHSDigital/GH-Arcade#114 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
TMHSDigital/GH-Arcade#113 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/GH-Arcade
Issue simili
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/playwright#44289 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
blamechris/chroxy#9272 ·
I maintainer di solito rispondono entro 1 giorno
-
no-repo-link tool-submission
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
BraveOPotato/NoSignups#2458 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
drmrd/vernacular#1061 ·
I maintainer di solito rispondono entro 1 giorno