Win by connecting both edges of your color.

Detailed rules.

Piet Hein (1942).