Homework 4, CSE 490ra
Due Tuesday, October 28, 11:59 am
Tic-Tac-Toe with gestures and reco
This assignment is to add gestures and handwriting recognition to your tic-tac-toe program. It is
open ended in that you have flexibility in how to use gestures and handwriting, however, there is
a simple and boring option outlined below. Note that gestures and handwriting are only available
when running on the tablet OS.
Gestures
Add a gesture to your program. You must use the built in gesture facilities and have the inkcollector
handle the gestures.
Handwriting
Add handwriting recognition to your program. There is a tremendous range of things that you could
do beyond just calling the ToString method on a strokes collection. For example, you might want
to optimize your recognition for some particular domain.
MVS (Minimal Viable Solution)
Add a star gesture that resets the game. Hook up an event handler to the the ink collectors gesture
event. If the gesture type is ApplicationGesture.Star reset the game. Note that you use
the build in gesture recognizer for Stars - you are not writing something to recognize a star. Working
from the Text (pp 354-366) this is pretty cookbook.
For handwriting recognition add a separate panel with an ink collector and feed ink from this collector
into a recognizer that looks for names of colors. When a color name is found (say Red, Blue, Green,
or Black), change the pen color. The simplest solution is to have the recognition done when
a button is pressed - it might be more interesting to do asynchronous recognition. The text gives
three different recognition examples, basic, intermediate, and advanced. You will get a little more
out of this if you opt for the intermediate recogntion over the basic recognition.
Submission
Submit a screen shot by the deadline by email to the instructor (anderson@cs.washington.edu).
Also, submit a zipped directory of your code, project files, and executable.