4 ms·
A few years ago, I became curious about whether it's possible to write code that generates logical-deduction puzzles. It turns out, you can -- and you can also
by jawns 5y ago
A few years ago, I became curious about whether it's possible to write code that generates logical-deduction puzzles.
It turns out, you can -- and you can also write code that solves them.
I wrote about the experience here, using the "Cheryl's Birthday" brain teaser as inspiration to create a murder mystery:
https://github.com/shaungallagher/cheryls-murder/blob/master/cheryls-murder.ipynb https://github.com/shaungallagher/cheryls-murder/blob/master...
The code is a bit convoluted -- it was hastily written during a Hack Days event -- but it's fun to see the end result!
- kelseyfrog 5y agoThe Search for Planet X[1] is a board game where players solve what amounts to a logic puzzle. The puzzle is generated procedurally and shared via seed amongst the players. The players then interact with an app to extract facts or constraints, keeping track of their own information as well as other players' queries in order to derive the game terminating[2] fact (the location of planet X). The game is, of course, deciding which new facts or constraints to learn. 1. (2020) https://boardgamegeek.com/boardgame/279537/search-planet-x https://boardgamegeek.com/boardgame/279537/search-planet-x 2. Among other ways to win points within the game
- DylanSp 5y agoI got that on Kickstarter, still haven't played it yet, though. I _have_ played and enjoyed Alchemists, another board game that involves deduction, though with other complex mechanics involved, and pure deduction won't necessarily win you the game.