Add Perbug Logic Locks puzzle, shared puzzle framework, and node integration - #381
Open
ercmine wants to merge 1 commit into
Open
Add Perbug Logic Locks puzzle, shared puzzle framework, and node integration#381ercmine 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
app/lib/features/home/puzzles/puzzle_framework.dartintroducingPuzzleSeedInput(deterministic seed from lat/lng + salts),PuzzleInstance,PuzzleSession,PuzzleDifficulty, generator/validator interfaces, seeded RNG helper, and analytics event types.app/lib/features/home/puzzles/logic_locks_puzzle.dartincluding deterministic hidden-solution generation, modular clue generation (exact/not/ before/adjacent/either-or), solver-assisted uniqueness checks, ambiguity/contradiction/deduction depth estimates, difficulty scoring/tiering, player state (assign/reset/undo), and a validator for submission.PerbugGameStatewith active puzzle session and history and adding controller methods inapp/lib/features/home/perbug_game_controller.dartfor generate/start/clue-viewed/submit/succeed/fail/abandon plus a simple energy reward hook.app/lib/features/home/perbug_game_page.dartwith a generate CTA, pre-play difficulty display, a sheet listing clues, a slot assignment board, undo/reset/submit/abandon controls, and a small puzzle lifecycle telemetry preview.Testing
app/test/logic_locks_puzzle_test.dartcovering deterministic same-seed generation, node-to-node differentiation, solvability/uniqueness when required, difficulty-scaling behavior, and validator correctness.dart/flutterbinaries are not installed so automated test execution anddart/flutter formatwere not possible here (toolchain missing).Codex Task