Java: Number Guessing Game

I created this during the summer of 2010, while everyone in the Philippines was going gaga over the first automated elections (happened to be a presedential election too). Prior to this, my last brush with Swing was a (not-quite-finished) memory game for my second programming course (which happens to be our programming course teaching Java).

Being my first brush with Swing after about a year, the source code falls into the "too commented for comfort" category. When I dug this up for kode.skytreader.net, I also realized that I didn't fan over much line breaks in code then.

(Note to teachers: This is a fun way of teaching binary search. If you do use it, however, and project the game for the whole class to see, you'll also be giving my name lots of publicity. Thank you!)

Downloads