The stereotypical implementation is often expressed as "making something more fun by adding a point system for challenge" which (ironicially) misses the point of why games are so compelling in the first place.
Making a list of things to keep in mind:
- the momentary challenge is immediate and exciting
- clear path to action with meaningful result
- assessible at-a-glance that it is better or worse overall
- provide clear choice of action