This is NOT a complete game. It is a simple "how to" to address a game mechanic that a student in one of my classes wanted to implement. (These are usually not internally commented)
see aselley.com (though this site is always under construction and the constraints of trying to have interests away from the computer means it is always in a state of editing)