Clicking on a edge darkens a line. Clicking on them again undarkens it. A double click erases the line.
The number inside the squares indicates the number of lines that should be drawn around the four lines that surround it. A square with no number can have any number of lines around it.
There is only one solution.
There can only be a single loop with no loose ends.