| Crates.io | demystify |
| lib.rs | demystify |
| version | 0.1.3 |
| created_at | 2025-08-08 08:53:50.379439+00 |
| updated_at | 2025-08-10 13:08:38.344281+00 |
| description | A constraint solving tool for explaining puzzles |
| homepage | https://github.com/stacs-cp/demystify-rs |
| repository | https://github.com/stacs-cp/demystify-rs |
| max_upload_size | |
| id | 1786437 |
| size | 333,050 |
demystify is a Rust-based solver designed to explain constraint satisfaction problems and puzzles. This project is a rewrite of the original demystify solver, which was implemented in Python. The long-term goal of demystify is to provide users with a robust tool for solving and understanding puzzles through detailed, human-readable explanations.
demystify requires conjure, a tool for constraint satisfaction and optimization problems. There are 2 ways to run conjure:
conjure.conjure isn't in your path it will be automatically downloaded via docker/podman. On windows, you must use docker.You will also need a reasonably recent version of rust. There are various ways to install Rust, but the easiest is probably with rustup
If you are on windows, you also need LLVM, you can get it by running winget install LLVM.LLVM.
Once conjure and rust are installed, you can proceed to set up demystify.
Clone the demystify repository:
git clone https://github.com/stacs-cp/demystify-rs
cd demystify
If you want to test demystify is working correctly, run it's tests:
cargo test --workspace
Note that this may take a long time the first time you run it (including warnings about 'Tests taking longer than 30 seconds'), if docker or podman is being used, as the Conjure image must be downloaded the first time it is used.
The easiest way to get started with demystify is with the web interface. This is provided in the package demystify-web. Just run:
cargo run --release --bin demystify-web
The go to the webpage it mentions (usually https://localhost:8008 )
To quickly get started with demystify, you can run the following command to solve a Sudoku puzzle and generate an explanatory HTML file:
cargo run --bin demystify --release -- --model eprime/sudoku.eprime --param eprime/sudoku/redditexample.param --html --quick --trace > sudoku.html
After running this command, open sudoku.html in your web browser to view the solution and its detailed explanation.
Please note that demystify is a work in progress. Some features are currently only half-completed and may be subject to changes. Your feedback and contributions are welcome to help improve the project.
Contributions to demystify are welcome. Feel free to open issues and submit pull requests on the GitHub repository.
demystify is licensed under the MPL 2.0 License. See the LICENSE file for more details.
Happy puzzling!