Skip to content

Field of view game#15

Merged
acrosman merged 11 commits intomainfrom
feature/field-of-view-game
Mar 22, 2026
Merged

Field of view game#15
acrosman merged 11 commits intomainfrom
feature/field-of-view-game

Conversation

@acrosman
Copy link
Copy Markdown
Owner

A The Divided Attention Task game called field of view.

Goal: Identify a central object while localizing a peripheral one.

Based on a spec provided by Gemini.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Field of View (Divided Attention Task) game plugin to the BrainSpeedExercises Electron app, including its UI/controller layer, pure game logic, styling, and Jest tests, plus a small update to the game-selection card to surface the game’s best threshold metric.

Changes:

  • Introduce the field-of-view game plugin (manifest, UI HTML, CSS, controller index.js, pure logic game.js, and tests).
  • Update the game card component + tests to display “All-time Best Threshold” for Field of View progress data.
  • Adjust the visible app header/footer text in app/index.html.

Reviewed changes

Copilot reviewed 9 out of 16 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
app/index.html Updates visible branding text in header/footer.
app/components/gameCard.js Adds Field of View-specific progress rendering (“best threshold”).
app/components/gameCard.test.js Adds tests for Field of View progress rendering on game cards.
app/games/field-of-view/manifest.json Registers the new Field of View game with the plugin registry.
app/games/field-of-view/interface.html Adds the game’s injected UI fragment (instructions, play area, trend chart, end panel).
app/games/field-of-view/style.css Adds scoped styling for the game UI and response controls.
app/games/field-of-view/index.js Implements the plugin controller (timing loop, rendering, progress persistence, lifecycle).
app/games/field-of-view/game.js Implements pure game logic (staircase, trial generation, metrics).
app/games/field-of-view/tests/game.test.js Unit tests for the pure game logic module.
app/games/field-of-view/tests/index.test.js Integration tests for the plugin lifecycle + DOM behavior.

@acrosman
Copy link
Copy Markdown
Owner Author

@copilot open a new pull request to apply changes based on the comments in this thread. You handle all code updates and assume I will replace the images with more compressed versions in a separate effort. Also ignore the comment that starts: "start() unhides the response panel immediately, which allows the player to select the center kitten while the stimulus is still visible."

Address all other issues raised in the review.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 22, 2026

@acrosman I've opened a new pull request, #19, to work on those changes. Once the pull request is ready, I'll request review from you.

@acrosman acrosman marked this pull request as ready for review March 22, 2026 21:24
@acrosman acrosman merged commit 09b8ec2 into main Mar 22, 2026
4 checks passed
@acrosman acrosman deleted the feature/field-of-view-game branch March 22, 2026 21:24
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.

3 participants