Repository navigation
Field of View: let the toy appear in any cell at 150 ms - #242
Merged
Merged
Conversation
Below ANY_CELL_SOA_MS (150 ms) the peripheral toy is no longer limited to the outer ring of the grid; it can land in any cell except the kitten's center cell. The tutorial practice trial keeps edge placement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the How to Play panel, the levels tutorial step, and the game's CLAUDE.md for the toy appearing anywhere at the fastest speeds. Fixes #199 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #199. When the display time (SOA) reaches 150 ms or faster, the cat toy can appear in any cell except the kitten's center cell. Before that, it stays on the outer ring, as it does today.
What changed
game.js: newANY_CELL_SOA_MS = 150andisAnyCellPlacementForCurrentSoa().createTrialLayout()passes the result tobuildTrialLayout, which skips the edge filter when it is true.createPracticeTrial()still uses edge placement, so the tutorial is unchanged.app/games/field-of-view/CLAUDE.mddocuments the threshold.Testing
Math.randomacross every candidate slot. Just above 150 ms, the toy lands only on the 16 edge cells of the 5×5 grid. At or below 150 ms, it can land on all 24 non-center cells.npm run lintis clean.npm run test:coveragepasses (2227 tests).Review notes
<= 150), matching the 300 ms grid-size rule. Because of the 16.67 ms steps, the first SOA it applies to is 149.93 ms.Signed: Claude Code, on behalf of Aaron Crosman
🤖 Generated with Claude Code