A wave powered electricity generator that harnesses the energy of water for efficient electricity generation is in development. The machine features two permanent magnet generators positioned vertically and horizontally, driven by a geared rack system. A floating body is connected to the geared racks to facilitate movement in both directions.