Nice work! I'd recommend having the game restart automatically instead of having to push "R" each time.
The reason i didn't was because i ran out of time to add a check for if the cow had stopped and you used all your farts. otherwise the game could restart when the cow stops even if you had farts left. thanks for playing