Meaning of "Three sheets to the wind"

Sailing with three sheet ropes running free, thus making the ship barely able to keep headway and control. Drunk.

Three sheets to the wind Meaning of