In the effort to make workers healthier, employers and insurers have dangled carrots. They've threatened with sticks. Now, they are trying games.

A growing number of workplace programs are borrowing techniques from digital games in an effort to encourage regular exercise and foster healthy eating habits. The idea is that competitive drive—sparked by online leader boards, peer pressure, digital rewards and real-world prizes—can get people to improve their overall health.

Geologist...