As the waves move past they transfer energy to the boat which bobs up and down with the same frequency as the waves.
It moves in a vertical direction only. However if the waves have been made by the wind the particles of water will also
move in the horizontal direction making their motion as a whole circular. In this case the boat would move along with the waves.