Skip to content

Otter Stop: replace No-Go Hits with an Errors count - #243

Merged
acrosman merged 2 commits into
mainfrom
feat/206-errors-stat
Oct 26, 2026
Merged

acrosman merged 2 commits into
mainfrom
feat/206-errors-stat

Conversation

@acrosman

Copy link
Copy Markdown
Owner

Summary

"No-Go Hits" was an odd label. Otter Stop now shows a single Errors count instead: each time the player pressed for the fish, plus each otter they missed.

What changed

  • game.js: new getErrors() (no-go hits + misses). The separate counters stay, because the tutorial's practice feedback still tells the two mistakes apart.
  • HUD: No-Go Hits → Errors (#os-errors).
  • End panel: the No-Go Hits and Misses rows are now one Errors row (#os-final-errors).
  • Tutorial: the levels slide and the screenshot caption describe Errors. The screenshot was retaken under the standard (1280×880, 2×, first trial, clipped to #os-game-area). The layout is unchanged and the regions measure inside the existing callout boxes, so the CSS did not change.
  • Game CLAUDE.md updated.

Testing

  • npm run lint and npm run test:coverage: 2229 tests pass, with 100% function coverage.
  • New getErrors() tests, and the index tests updated for the new IDs.
  • Ran the app with an isolated --user-data-dir to retake the screenshot and confirm the HUD.

Review notes

  • stop() and stopGame() still return noGoHits and misses. The end panel sums them, and no new result field was added.

Signed: Claude Code, on behalf of Aaron Crosman

🤖 Generated with Claude Code

acrosman and others added 2 commits October 25, 2026 20:48
The HUD and the end panel now show "Errors": presses for the fish plus
missed otters, from the new getErrors(). The end panel's separate
No-Go Hits and Misses rows become that single row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the levels slide and the screenshot caption, and retake the
screenshot so its stats row shows Errors. The layout is unchanged, so
the callout boxes stay where they are.

Fixes #206

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acrosman

Copy link
Copy Markdown
Owner Author

Fixes #206

@acrosman
acrosman merged commit be15982 into main Oct 26, 2026
7 checks passed
@acrosman
acrosman deleted the feat/206-errors-stat branch October 26, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant