Each pearl wants exactly that many cords around it, all in one closed loop.
Tank 1 · Pearls 0 / 16 · Cords 0
Start on a 3: it needs three of its four cords, so two of them are certain.
Tap between two pegs to lay a cord. Tap again to cross it off, once more to clear.