Post #668514
2026-03-14 19:58 UTC
Thanks, @reconbot and @castaway, now I'm playing Clues By Sam too.
Except I don't like to think hard. So taught my computer to play for me. The puzzle's initial state and clues are embedded in the source file, and when I run it, it shows suspects being identified and the board being gradually uncovered. Unlock a clue, type it in, and run the solver again.
The clue syntax is easy to type, easy to parse and evaluate, hard to read.
#CluesBySam #BuildThread
Replies (3)
-
@kbob@chaos.social 2026-03-15 02:36
@reconbot @castaway The clue DSL is a tiny subset of Python, and I use Python's `eval()`. Constants: cards: a1, b1, ... d5 rows: row1..row5 columns: colA..colD neighbors: na1, nb1, ... nd5 above, below, left, right: ab4, bc1, ld3, rd1, etc. all edge cards: edges unsigned integers Functions: cc: criminal count ic: innocent count even odd Operators: + - & | = > and or #CluesBySam
-
@reconbot@toot.cafe 2026-03-14 21:42
@kbob @castaway that’s wild!
-
@castaway@fosstodon.org 2026-03-14 21:44
@kbob @reconbot well that's one way to solve it..