Add Pattern Recall puzzle framework and integrate into Perbug game - #387
Open
ercmine wants to merge 1 commit into
Open
Add Pattern Recall puzzle framework and integrate into Perbug game#387ercmine wants to merge 1 commit into
ercmine wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Motivation
Description
puzzles/perbug_puzzle_framework.dartwith deterministic seeding (seededRandom) and common types/models.`pattern_recall_generator.dart,pattern_recall_models.dart, andpattern_recall_validator.dartto generate deterministic sequences, compute difficulty knobs, and validate player input.PerbugGameStateandPerbugGameControllerwith methods tolaunch, preview, input, retry, abandon, and close pattern sessions and to record lifecycle events andpuzzleEvents.PatternRecallPuzzleSheetand a launch button inperbug_game_page.dartto start and interact with Pattern Recall puzzles.app/test/perbug_pattern_recall_test.dartcovering deterministic generation, tuning/difficulty effects, validator tolerance behavior, and controller lifecycle/flow.Testing
flutter test(test:app/test/perbug_pattern_recall_test.dart), which exercises generator determinism, tuning changes, validator behavior, and controller session handling and lifecycle events; tests succeeded.preview_completed/puzzle_succeededevents, and reusing in-progress sessions via unit tests, all passing.Codex Task