Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demystify-0.0.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

demystify-0.0.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file demystify-0.0.4.tar.gz.

File metadata

  • Download URL: demystify-0.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for demystify-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3ef47398d7aa22c1c2335b4adf08b0fc9fbb89b5d6641fddd4a1242cb86e267d
MD5 7af1f2dcc7e62d51875c22e4e487bf4e
BLAKE2b-256 e36dda3b4cbf8817180ca59e5b4d5a27e28c605d6d79e1f0277fbdd4092b83ac

See more details on using hashes here.

File details

Details for the file demystify-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: demystify-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for demystify-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ff9289403a06d428aa020d74b9136cec46f6cac6c92569a179d182f7b4d79f
MD5 3f8122db90e451b5f7aa0d939d6805be
BLAKE2b-256 dab2d899b705dc6cf4642d8d28dd9d18fb2fa8df7ee7566adcb671fda8aa69f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page