4 ms·
If you like this sort of thing, I wrote some code a couple of years ago to generate and solve logical deduction problems, such as the "Cheryl's Birthday" braint
by jawns 10y ago
If you like this sort of thing, I wrote some code a couple of years ago to generate and solve logical deduction problems, such as the "Cheryl's Birthday" brainteaser:
https://github.com/shaungallagher/cheryls-murder/blob/master/cheryls-murder.ipynb https://github.com/shaungallagher/cheryls-murder/blob/master...
The code isn't very clean (it was written hastily as part of a hack days project at work) but the notebook walks you through it, so even if you're not familiar with Python, you'll get a sense of the technique.