teaching machines

Mobile Web

December 6, 2012 by . Filed under cs491 mobile, fall 2012, postmortems.

For this assignment, I created a very simple number guessing game. The user can either type a number, or use the buttons (in a control group) to quickly increment or decrement their guess. Then they hit guess (with a custom star icon on the button), and gets some feedback. If their guess was correct, the phone will vibrate (using the Cordova notification) and then show a screen that congratulates them. Otherwise, a dialog will pop up saying their guess is too low or too high.

I learned that I don’t trust JavaScript’s random number generator. The values are suppose to fall between 0 and 100, but after dozens of tests, I never had to guess above 25.  Also, somewhat unrelated, ‘it’ is telling me that decrement is not a word, but decremented is.