Project Description

SurveySez is a team-based quiz game designed for use on a projector. It demonstrates the M-V-VM pattern using WPF in C#.

How to Play

Use the editor to create surveys. A survey has a question and some number of answers. Questions should be in the form "Name something you can ..." or "Name a kind of ..." or any other category description. Answers should be the most common things within that category, but will probably not be all inclusive.

Add surveys to a game. A game typically would have three surveys.

Find a bunch of friends (at least 6). Hook up a projector. Drag the game window to the public screen. Keep the editor window private. Maximize the game window to take up the full projector screen. Then hit the "Play" button.

The first survey question is shown. You can see all of the answers on your private window. Use the following keys:
  • 1-9: Reveal an answer after 5 seconds.
  • 0: Display an additional X (up to three) after 5 seconds.
  • Backspace: Cancel the 5 second timer.
  • +: Go to the next question.
  • -: Go back to the previous question.

Using a wireless number pad, you can walk around a little more, but be sure to stay where you can see your laptop screen but nobody else can.

Dependencies

Survey Sez depends upon the Correspondence and Update Controls libraries, published here: http://correspondence.codeplex.com http://updatecotrols.codeplex.com. Correspondence is used for persistence, and Update Controls simplifies the M-V-VM pattern.

M-V-VM

The key pattern in Survey Sez is the M-V-VM pattern (a.k.a. View Model, a.k.a. Presentation Model). It is supported by a Navigation Model http://adventuresinsoftware.com/blog/?p=290. The surveys are stored in the Correspondence historical model. The current survey and answered questions are stored in the navigation model. The view model brings these two together and publishes properties specifically for the view.

Last edited Oct 6, 2010 at 9:35 PM by MichaelLPerry1971, version 3