
Pipe Puzzle
classic game; by mnf
Prompt
Implement a classic pipe puzzle. A player selects size, eg 5x5 and difficulty (how many tiles is wrongly rotated or possible almost correct solutions). It generates a puzzle from tiles (empty, straight pipe, L pipe, T pipe; unchangeable sources and goals [sinks] and fail tiles [water hitting it means instant fail]), clicking on tiles rotates them. A run button simulates (gradually, animate) flow of water/liquid through pipes. Pipes leaking water (eg T shape with water not connected by all 3 sides), not filling all sinks or hitting a fail tile is a solution fail. A player then can try to fix it and run again. On a victory do magenta confetti swirling in a spiral.
A system prompt was added to support web rendering
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize
Drag to resize