Solving Pipes Puzzles with Constraint Propagation
One of my guilty timewasters is playing pipe puzzles on my phone. The rules are fairly simple: you get a grid of pipes and you need to rotate them such that all of the pipes connect with no broken connections and no cycles. I vibecoded a JavaScript implementation to embed here so you can play around to understand the mechanics. If you want to play for real go to puzzle-pipes.com. Solving these individually is certainly a waste of my time. A marginally better use of my time is writing a solver. At least this way I might learn something. ...