Google interview question

How would you design Solitaire?