Hudson has a Continuous Integration Plugin game that gives you points for successful builds, adding tests, removing TODOs, etc. As a plugin it started out simple, but now allows you to get points based on:
Doing a successful build.
Adding new successful tests.
Fixing PMD, FindBugs, or Checkstyle warnings.
Fixing a compiler warning.
Fixing a TODO.
Around a year ago [...]