Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 829 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 829 Bytes

logicpuzzle

Solves the Zebra puzzle by reasoning, further explained in by blog https://www.ontdeksels.nl/ontdeksel-30 (Dutch). It's a logic puzzle in which you have to find the right combinations by reasoning.

Solution/output:

Demo screenshot

Your own puzzle

You can let the application solve other logic puzzles. To make this happen, you need to feed the algoritm by changing the input variables right in the beginning of the (../blob/master/logicpuzzle.js) file.

const logicPuzzle = { actors: ... attributes: ... hints: ... }

Hint types supported so far:

  • Relations
  • Next to
  • Left to

If your puzzle has other types of hints, you need to build the support for these types yourself. This logic should be defined in the createRules() function.

Happy puzzling!