Use the mouse to click on empty spaces to build walls. Click again to change the direction of the wall. Click a third time to make the wall disappear.
1) The number of walls connecting to a pillar must match the number written on the pillar.
2) The walls must not form closed loop.