|
|
|
|
|
by nchammas
940 days ago
|
|
This is pretty neat, and it reminds me of my experiment solving the water jug problem from Die Hard 3 using Hypothesis [1] (a Python library for property-based testing). Though I doubt Hypothesis's stateful testing capabilities can replicate all the capabilities of Datalog (or its elegance for this kind of logic problem), I think you could port the author's expression of the game rules to Hypothesis pretty straightforwardly. [1]: https://nchammas.com/writing/how-not-to-die-hard-with-hypoth... |
|