teaching machines

CS 491 Lecture 13 – Persisting with Preferences

October 15, 2013 by . Filed under cs491 mobile, fall 2013, lectures.




Apps are made to be interrupted. Let’s get our hands dirty by implementing a game of TicTacToe, preserving the game state on interruption, and restoring the game from the persisted state on resume. Write a quick and dirty TicTacToe game on the platform of your choice.

Layout is not our focus today, so please don’t spend time perfecting your user interface. I recommend slapping on 9 buttons in a 3×3 grid in a slipshod manner.

iOS Tips

Android Tips


Pity the just-names
Admire the just-values
Store the name-values