Add Pattern Recall puzzle system with generator, validator, UI and controller integration - #383
Open
ercmine wants to merge 2 commits into
Open
Add Pattern Recall puzzle system with generator, validator, UI and controller integration#383ercmine wants to merge 2 commits into
ercmine wants to merge 2 commits 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 seeded RNG,PuzzleInstance/PuzzleGenerator/PuzzleValidatorcontracts and lifecycle helpers.PatternRecallGeneratorinpuzzles/pattern_recall/pattern_recall_generator.dartwhich deterministically generates symbol sequences, distractions, and difficulty knobs from aPuzzleSeedInput.puzzles/pattern_recall/pattern_recall_models.dartand a validator inpuzzles/pattern_recall/pattern_recall_validator.dartthat evaluates input vs expected with tolerance.PatternRecallPuzzleSheetand wire a launch button intoperbug_game_page.dartto open the puzzle sheet for the current node.perbug_game_models.dartandperbug_game_controller.dart) with puzzle state, lifecycle events, controller methods (launchPatternRecallForCurrentNode,startPatternPreview,setPatternPreviewStep,completePatternPreview,inputPatternSymbol,clearPatternInput,retryPatternRecall,abandonPatternRecall,closePatternRecall), energy/reward hooks, and event logging.Testing
app/test/perbug_pattern_recall_test.dartwhich exercises deterministic generation, difference across nodes, difficulty tuning, validator tolerance, and controller lifecycle/flow.flutter testand the new tests passed (all assertions inperbug_pattern_recall_test.dartsucceeded).Codex Task