Implement deterministic Perbug Pattern Recall puzzle in node framework - #380
Open
ercmine wants to merge 2 commits into
Open
Implement deterministic Perbug Pattern Recall puzzle in node framework#380ercmine 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
PuzzleType,PuzzleSeedInput, deterministicseededRandom(FNV-1a hash),PuzzleDifficulty,PuzzleResult,PuzzleSession,PuzzleLifecycleEvent, and generator/validator interfaces (app/lib/features/home/puzzles/perbug_puzzle_framework.dart).pattern_recall_models.dart).PatternRecallGeneratorthat builds a non-trivial symbol sequence from the node lat/lng seed, derives mirrored/reversed/distraction behavior and computes a weighted difficulty score/tier and explainer contributions (pattern_recall_generator.dart).PatternRecallValidatorwith tolerance-aware validation, analytics payload, and clear success/failure criteria (pattern_recall_validator.dart).pattern_recall_puzzle_sheet.dart) and integrated a launch button + live difficulty display into the Perbug game page (perbug_game_page.dart).PerbugGameStateandPerbugGameControllerto hold active puzzle session state and lifecycle/telemetry event stream and implemented full pattern recall lifecycle APIs (generate, start preview, preview step, complete preview, input, validate, retry, abandon, close) with reward/energy hook stubs (perbug_game_models.dartandperbug_game_controller.dart).app/test/perbug_pattern_recall_test.dart).Testing
app/test/perbug_pattern_recall_test.dartthat assert deterministic generation from the same seed, different outputs for different nodes, difficulty scaling with tuning, validator tolerance behavior, and controller lifecycle/input gating (tests present but not executed in this environment).diff --check) which reported no issues.flutter testfor the new test file but the execution environment lacks Flutter (/bin/bash: flutter: command not found), so the tests were not executed here; tests are included and ready to run in a proper Flutter/dev environment.Codex Task