This is NOT a complete game. It is a code snippet, internally documented, to teach my students a very basic game function that the can apply to their own creations or assigned coding challenges.
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)