Here is a fully functional Dice Game sample:
http://foreachdev.net/blog/2007/09/28/dice-game-sample-for-channel9/