Implement Puzzle #4: modular deterministic Perbug Symbol Match - #382
Open
ercmine wants to merge 1 commit into
Open
Implement Puzzle #4: modular deterministic Perbug Symbol Match#382ercmine 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
perbug_puzzle_framework.dart) withPuzzleSeedInput,DeterministicRng,PuzzleDifficulty,PuzzleInstance,PuzzleSession, andPuzzleResult, and a stabletoSeed()derivation that quantizes lat/lng and mixes node id for determinism.Perbug Symbol Match(perbug_symbol_match.dart) providing deterministic symbol feature generation (shape/color/mark/rotation), rule generation/evaluation, decoy selection tuned byoverlapSimilarity, per-round construction with fairness checks (exactly one valid answer), and a difficulty knobs model (SymbolMatchDifficultyKnobs) driving score and tier.SymbolMatchPuzzleSheet(perbug_symbol_match_screen.dart) with pre-start difficulty display, multi-round selection flow, optional timer pressure, custom symbol painter, selection/submit/continue loop, and lifecycle events for start/round/complete/success/failure.PuzzleSessionand puzzle telemetry, addingbuildSymbolMatchPuzzleForNode()andfinalizePuzzleResult()to the controller, and launching the puzzle from reachable node actions in the main game page (perbug_game_page.dart) so successful puzzle completion is required to execute the jump reward.Testing
app/test/perbug_symbol_match_test.dartcovering deterministic generation from the same seed, different-seed divergence, difficulty scaling with knobs, round fairness (single valid answer), answer validation, and timer-pressure behavior.app/test/perbug_game_models_test.dartto reflect the extendedPerbugGameStateshape including puzzle event list.dart/flutterexecutables are not available, so the tests were added but not executed here.git diff --checkwhich reported no whitespace errors and committed the changes to the branch (commit recorded locally).Codex Task