Standardize shared adaptive staircase integration across games#74
Standardize shared adaptive staircase integration across games#74
Conversation
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/41a69fec-d33c-4e8b-8de0-3451fb05edff Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/41a69fec-d33c-4e8b-8de0-3451fb05edff Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/41a69fec-d33c-4e8b-8de0-3451fb05edff Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
acrosman
left a comment
There was a problem hiding this comment.
Looks like only the games in the issues were updated. But the whole point of a service like this is to support all games consistently. Ensure all games mirror the patterns by making sure they all leverage the service correctly.
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/c879fbe8-ad65-48fa-a07f-d5e3dc3cf765 Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/c879fbe8-ad65-48fa-a07f-d5e3dc3cf765 Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/c879fbe8-ad65-48fa-a07f-d5e3dc3cf765 Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Implemented in 57b201f (with follow-up alignment in 22b6732): all streak-based games now use the shared |
acrosman
left a comment
There was a problem hiding this comment.
Most games work right but Otter Stop wasn't integrated into the new service correctly. Now every response is graded as right or wrong to advance the level. It should wait until a no-go image comes around to check for advancing. Any wrong answer (selecting no-go or timing out on an otter) should be used for going back levels.
| /** Current difficulty level. */ | ||
| let level = 0; | ||
|
|
||
| /** Consecutive correct-response streak (counts correct no-go inhibitions only). */ |
There was a problem hiding this comment.
This was important (the functionality not the comment).
|
|
||
| if (correct) { | ||
| score += 1; | ||
| consecutiveWrong = 0; |
There was a problem hiding this comment.
This should not have been removed. The game should only count right answers for advancement when a no-go comes around.
Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/10d03fe6-05d8-4bb8-becc-98ff54585004 Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
…ials Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/10d03fe6-05d8-4bb8-becc-98ff54585004 Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Addressed in 8ba811d (plus cleanup in dd5fe8a). Otter Stop now only advances on correct no-go inhibitions, while any wrong response (no-go false alarm or go timeout) contributes to the 3-wrong level drop path through the shared service. Screenshot: |
|
@copilot During release build the Windows build process throws an error: How can we fix this? |


Difficulty progression was inconsistent across games: at least two games did not follow the shared rule of +1 level after 3 consecutive correct and -2 levels after 3 consecutive wrong. This PR completes the service adoption by ensuring all streak-based games use the shared staircase service, while preserving Otter Stop’s intended game-specific advancement semantics.
Shared adaptive staircase service
app/components/adaptiveDifficultyService.jsto centralize streak-based difficulty transitions.app/components/tests/adaptiveDifficultyService.test.js.Game logic fixes and full service adoption
app/games/otter-stop/game.jsapp/games/field-of-view/game.jsapp/games/directional-processing/game.jsapp/games/sound-sweep/game.jsapp/games/object-track/game.jsapp/games/high-speed-memory/game.jsapp/games/orbit-sprite-memory/game.jsapp/games/fast-piggie/game.jsBehavioral test updates
app/games/otter-stop/tests/game.test.jsapp/games/field-of-view/tests/game.test.jsUI copy alignment (Field of View)
app/games/field-of-view/interface.htmlapp/games/field-of-view/index.jsScreenshot