Pipe Mania is a puzzle game developed in 1989 by The Assembly Line for the Amiga. It was ported to several other platforms by LucasFilm Games, who gave it the name Pipe Dream and acted as general distributors for the US. In this game, the player must connect randomly appearing pieces of pipe on a grid to a given length within a limited time.
The Windows version of the game was included in the MS Windows Entertainment Pack. In 1990 it was released as an arcade game by Japanese manufacturer Video System Co. Ltd., though with slightly altered gameplay, giving the player the task to connect a source and drain with the random pipe pieces.
Source: Wikipedia, "Pipe Mania", available under the CC-BY-SA License.