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.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file demystify-0.0.12.tar.gz
.
File metadata
- Download URL: demystify-0.0.12.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e784748735fd5a07d37f4b495f8b4678141e5feea3d37f30f8cfe793be208dc |
|
MD5 | 83dc2f4b30f304e63f674e4025ec13b7 |
|
BLAKE2b-256 | 47ce410afdf9cf058f1f1df277d2440066682f70483ae9c98e78ab1683879d6d |
File details
Details for the file demystify-0.0.12-py2-none-any.whl
.
File metadata
- Download URL: demystify-0.0.12-py2-none-any.whl
- Upload date:
- Size: 49.3 kB
- Tags: Python 2
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cbc02730608cc678b669e98df56e2b1e133e72a2b63b9d3f12be44d756f6ca9 |
|
MD5 | b7429d987f674af455c6d05dbf691b16 |
|
BLAKE2b-256 | 46486f809ae15d882cdfce23eedc593dc6a88f655dfce7bc560cb15c69aae709 |