Demystify
Pen and paper puzzles like Sudoku, Futoshiki and Skyscrapers are hugely popular. Solving such puzzles can be a trivial task for modern AI systems. However, most AI systems solve problems using a form of backtracking, while people try to avoid backtracking as much as possible. This means that existing AI systems do not output explanations about their reasoning that are meaningful to people.
Demystify is a tool which allows puzzles to be expressed in a high-level constraint programming language and uses MUSes to automatically produce descriptions of steps in the puzzle solving.
Install Instructions
Install conjure (in conjure git checkout):
git clone https://github.com/conjure-cp/conjure && cd conjure && make && make solvers && make install
Install some python packages:
pip3 install python-sat z3-solver numpy sortedcontainers
Then try:
python3 demystify --eprime eprime/binairo.eprime --eprimeparam eprime/binairo-1.param
Visualizer
Demystify also has a visual interface, which you can find in a separate repository here
Implemented Puzzles
- Binairo
- Futoshiki
- Sudoku
- Jigsaw Sudoku
- X-Sudoku
- Miracle Sudoku
- Kakuro
- Skyscrapers
- Star Battle
- Tents and Trees
- Thermometers
All the models can be found in the eprime directory. If you are interested in a puzzle that is not implemented, there is a guide for modelling your own puzzles here.
Publications
Metadata
Release files for demystify 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| demystify-0.0.17.tar.gz | 34.9 kB | Without provenance | Details for demystify-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| demystify-0.0.17-py2-none-any.whl | Python 2 | none | any | Details for demystify-0.0.17-py2-none-any.whl |
Total release size: 84.6 kB
Release files / demystify-0.0.17.tar.gz
| Download URL | demystify-0.0.17.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93779a131aa78f7de0dffdbe8e89124836b5eb6d0e9b4bc385821845a4628f52
|
|
BLAKE2b-256 checksum How to use checksums |
5d65e39494744bdf961ba2a269135c0d10033eb214db4e663e4658c7de675e35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.2
|
Release files / demystify-0.0.17-py2-none-any.whl
| Download URL | demystify-0.0.17-py2-none-any.whl |
|---|---|
| Size | 49.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b9a4f173dbf50dcafe8d7b40e2c522653f25570fd4a91124265d591171558f69
|
|
BLAKE2b-256 checksum How to use checksums |
b67243ea97ce359d231e750ecc8451bf768031fd4d79b72dc7753aa6f0e392db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.2
|
Security for demystify 0.0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.