Skip to content

Orbit Sprite Memory: option to hide the target image - #238

Merged
acrosman merged 1 commit into
mainfrom
feat/205-hide-target-image
Oct 19, 2026
Merged

acrosman merged 1 commit into
mainfrom
feat/205-hide-target-image

Conversation

@acrosman

Copy link
Copy Markdown
Owner

Summary

Adds a Show target image checkbox to the Orbit Sprite Memory play screen. Unchecking it hides the target rabbit preview, so the player has to work out which rabbit appeared three times. Fixes #205.

What changed

  • interface.html: the checkbox sits next to End Game and is checked by default. It follows Card Rat's setting toggles. The target row has a new ID, #osm-target-wrap.
  • index.js: new updateTargetVisibility(), which runs on change and at the start of every round (playRound).
  • Practice rounds always show the target, because the tutorial's coaching text refers to the rabbit beside "Target image". The checkbox is hidden during practice so it can't be changed to no effect.
  • style.css: .osm-toggle styling, and align-items: center on the controls row so the label lines up with the button.
  • CLAUDE.md for the game documents the setting.

Testing

  • New tests cover the default state, toggling, a round started with the setting off, practice rounds with the setting off, and the checkbox's label in the real interface.html.
  • npm run lint is clean and npm run test:coverage passes (2162 tests).
  • Not checked in the running app.

Worth a close look

  • The setting is not saved. It resets to checked whenever the game loads, as Card Rat's toggles do.
  • Scores from sessions played with the target hidden are saved in the same way as normal scores. The two kinds of sessions aren't marked apart in history.
  • Hiding the row shifts the board up by the height of the target row.

🤖 Generated with Claude Code

A checkbox next to End Game, checked by default, hides the target rabbit
during scored rounds to make play harder. Practice rounds always show the
target, since the tutorial coaching points to it, and hide the checkbox.

Fixes #205

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acrosman
acrosman merged commit bb3bf4c into main Oct 19, 2026
7 checks passed
@acrosman
acrosman deleted the feat/205-hide-target-image branch October 19, 2026 02:42
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.

Orbit Sprite Memory: Option to remove target image

1 participant