Move the paddle around and tap the crab. If the crab touches the red line it's game over and your score is reset.
I used a tutorial for some parts but the rest was me.