How til7701/puzzled works
Puzzled is a GTK/Libadwaita puzzle-solving application with configuration, puzzle collections, interactive placement, and a solver. The principal workflow is to load a collection, select a puzzle, manipulate its tiles, and check whether the arrangement solves it; the README also describes feasibility feedback and multiple puzzle formats. The source index supports key model, configuration, polyform, and solver connections, but several UI components were not sampled, so their internal calls are not asserted.
Main entry points: collection.rs Puzzle collections · puzzle.rs Puzzle progress · store/mod.rs Collection store · dlx/mod.rs Exact-cover search
Components 27
Application interface
- Application
puzzled/src/application.rs - Main window
puzzled/src/window.rs - Collection selection
puzzled/src/app/collection_selection/collection_selection_page.rs - Puzzle interaction
puzzled/src/app/puzzle/puzzle_area/puzzle_state.rs - Board placement
puzzled/src/model/placement/mod.rs
Puzzle domain
- Puzzle collections
puzzled/src/model/collection.rs - Puzzle progress
puzzled/src/model/puzzle.rs - Puzzle metadata
puzzled/src/model/puzzle_meta.rs - Puzzle variants
puzzled/src/model/extension.rs - Progress stars
puzzled/src/model/stars.rs - Collection store
puzzled/src/model/store/mod.rs - Community collections
puzzled/src/model/store/community.rs - Placement models
puzzled/src/model/placement/model/mod.rs
Puzzle configuration
- Puzzle JSON model
puzzled_config/src/json/model.rs - JSON conversion
puzzled_config/src/json/converter.rs - Config validation
puzzled_config/src/validation.rs - Random puzzles
puzzled_config/src/random/mod.rs
Polyform geometry
- Coordinates
puzzled_polyform/src/coord/coord_box.rs - Polyforms
puzzled_polyform/src/poly/polyomino.rs
Puzzle solver
- Solver integration
puzzled/src/solver/mod.rs - Solver engine
puzzled_solver/src/lib.rs - Solver tiles
puzzled_solver/src/tile.rs - Exact-cover search
puzzled_solver/src/dlx/mod.rs - Solver board
puzzled_solver/src/board.rs - Solve result
puzzled_solver/src/result.rs - Tile combinations
puzzled/src/solver/combination_solutions.rs
Other components
- Player
Connections 28
- Player → Application: opens
- Application → Main window: presents
puzzled/src/application.rs - Application → Collection store: loads collections
puzzled/src/application.rs - Main window → Collection selection: shows collection
- Collection selection → Puzzle collections: selects
- Puzzle collections → Puzzle progress: contains
puzzled/src/model/collection.rs - Puzzle interaction → Puzzle variants: uses variants
puzzled/src/app/puzzle/puzzle_area/puzzle_state.rs - Board placement → Puzzle interaction: extracts state
puzzled/src/model/placement/mod.rs - Board placement → Placement models: delegates placement
puzzled/src/model/placement/mod.rs - Puzzle progress → Puzzle collections: belongs to
puzzled/src/model/puzzle.rs - Puzzle collections → Puzzle metadata: reads progress
puzzled/src/model/collection.rs - Puzzle progress → Puzzle metadata: records progress
puzzled/src/model/puzzle.rs - Puzzle progress → Progress stars: uses scoring
puzzled/src/model/puzzle.rs - Collection store → Puzzle collections: builds collections
puzzled/src/model/store/mod.rs - Collection store → Community collections: loads and saves
puzzled/src/model/store/mod.rs - JSON conversion → Puzzle JSON model: converts
puzzled_config/src/json/converter.rs - JSON conversion → Config validation: validates
puzzled_config/src/json/converter.rs - Collection store → JSON conversion: loads JSON
puzzled/src/model/store/mod.rs - Random puzzles → Config validation: generates puzzles
- Polyforms → Coordinates: uses coordinates
puzzled_polyform/src/poly/polyomino.rs - Placement models → Polyforms: positions shapes
- Solver integration → Puzzle interaction: reads puzzle state
puzzled/src/solver/mod.rs - Solver integration → Tile combinations: uses combinations
puzzled/src/solver/mod.rs - Solver integration → Solver engine: invokes solver
- Solver engine → Exact-cover search: dispatches search
puzzled_solver/src/lib.rs - Exact-cover search → Solver board: reads board
puzzled_solver/src/dlx/mod.rs - Exact-cover search → Solver tiles: places tiles
puzzled_solver/src/dlx/mod.rs - Exact-cover search → Solve result: returns solutions
puzzled_solver/src/dlx/mod.rs