Another method is to anchor a floating generator that obtains energy from rising and falling where waves are dominant.
There are places like the south end of Baja California where the tides are huge and one could farm the tidal energy in thousands of megawatts when the tide comes in, and when it goes out.