How jabb4man/42-rush01 works
Rush01 is a command-line Skyscrapers puzzle solver for dynamically sized grids. The user supplies clues as one argument; the program parses them, initializes candidate bitmasks, applies geometric pre-filtering, and searches for a solution using propagation, hidden singles, MRV, and visibility checks before printing the grid or an error. The README also describes support through 9×9. The graph follows calls visible in the excerpts; no external services or persistent storage are involved.
Main entry points: solve.c MRV search · propagate.c Candidate propagation · main.c CLI and grid setup · filter.c Clue pre-filter
Components 7
Input and output
- CLI and grid setup
ex00/main.c - Solution or error
Constraint reduction
- Clue pre-filter
ex00/filter.c - Candidate propagation
ex00/propagate.c
Search and validation
- MRV search
ex00/solve.c - Visibility pruning
ex00/visibility.c
Other components
- Puzzle user
Connections 11
- Puzzle user → CLI and grid setup: provides clues
ex00/main.c - CLI and grid setup → Clue pre-filter: pre-filters clues
ex00/main.c - CLI and grid setup → MRV search: solves grid
ex00/main.c - CLI and grid setup → Solution or error: prints result
ex00/main.c - Clue pre-filter → Candidate propagation: propagates singles
ex00/filter.c - Clue pre-filter → Candidate propagation: applies hidden singles
ex00/filter.c - Candidate propagation → Candidate propagation: recurses on singles
ex00/propagate.c - MRV search → Visibility pruning: checks clues
ex00/solve.c - MRV search → Candidate propagation: propagates guesses
ex00/solve.c - MRV search → Candidate propagation: applies hidden singles
ex00/solve.c - MRV search → MRV search: tries candidates
ex00/solve.c