News for hackers. Stuff that matters.
Re:Logic programming is overrated, at least for logic puzzle... by lurquer on Thursday June 01, 2023 @02:30PM (#36155311)
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.

Re:Logic programming is overrated, at least for logic puzzle... by contingencies on Thursday June 01, 2023 @03:50PM (#36156442)
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.

Re:Logic programming is overrated, at least for logic puzzle... by lurquer on Thursday June 01, 2023 @11:49PM (#36160770)
If your kid is a Vulcan, give him this:

https://a.co/d/duMgX8q