You can fill up a cup with warm water, splash a little on your legs, put on the shaving cream and shave
use the rest of the water in the cup to rinse off your razor, then you are done. With just one cup of water.
I know this not from living on a boat but from shaving while I watch TV in the bedroom. hehe