You are the sheepdog. Move the mouse / finger to steer the dog โ sheep run away from it. Herd every sheep into the pen before time runs out.
Bark (click or Space) scares sheep from further away. Close the gate (G) once they are inside โ wolves can't get in! Scare wolves by running at them.