Otter Stop: geometric speed progression + consistent image sizing#65
Merged
Otter Stop: geometric speed progression + consistent image sizing#65
Conversation
Closed
- Replace linear 50ms/level speed step with geometric decay (rate=0.88), giving ~180ms jumps at low levels tapering down as the game speeds up - Fix .os-stimulus__img to fill container (width/height 100%) matching feedback images, removing the inconsistent 60px margin - Update game.test.js to reflect new interval values (level 1 → 1320ms, floor reached at level 19 instead of 27) Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/fb773e3e-8af1-4904-8604-366062d9b0ab Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve Otter Stop speed and enlarge images
Otter Stop: geometric speed progression + consistent image sizing
Apr 14, 2026
acrosman
approved these changes
Apr 14, 2026
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.
Two UX issues with Otter Stop: speed increments were a flat 50 ms/level (too slow to challenge players), and go/no-go stimulus images were displayed ~60 px smaller than their container while feedback images filled it entirely.
Speed progression (
game.js)Replace linear decrement with geometric decay (
×0.88per level):Image sizing (
style.css)Remove the
min(440px, calc(50vmin - 60px))constraints on.os-stimulus__imgand usewidth: 100%; height: 100%; object-fit: contain— matching how feedback (success/failure) images already fill their container.Tests (
tests/game.test.js)Updated two
getCurrentIntervalMs()assertions to match the new formula (level 1 → 1320 ms; floor-clamped test now needs 57 iterations instead of 81).