Draw the solution. Dots are taken from each pipe's two ends.
Grid
Tool
Pipe colour
Board
emptyobstaclebridgewallrule break
Drag across cells to lay a pipe. Drag back over it to undo. With the Wall tool, click near the edge between two cells to put a wall there, and click it again to remove it.