Hacker News new | ask | show | jobs
by lurquer 1283 days ago
I’ve written programs to solve and create those grid-style logic puzzles (such as “Five men went to dinner. Mr Brown ordered fish. The man with the red hat ordered lamb. The person who ordered beef was not Mr. White… etc.)

Once you have a way of encoding the clues into a machine-readable syntax, it’s trivial to solve. But, the tricky part is creating a good puzzle that can be solved by a human without guessing. That’s an art form. A brute-force solver won’t suffice to analyze your randomly generated sets of clues; instead, you need a solver that is only capable of making the types of deductions a human could make. Very subjective.

1 comments

Couple of very good kids games recently on this theme: https://www.thinkfun.com/products/dog-crimes/ and https://www.thinkfun.com/products/cat-crimes/

If you have a suitably interested child, this could provide a fun bridge to constraint based programming.

If your kid is a Vulcan, give him this:

https://a.co/d/duMgX8q