The dog will move whenever you move your cursor, so basically it just follows your cursor. Each time the dog touches the cat, the score will increase by 1. But in most cases, the cat will be there in the same spot for like 3-4 seconds, meaning the score will increase by at least 3.
Thanks Scratch, for the 'Tutorials' platform.