Here is a link to a WPF Scrabble game I developed while "learning the ropes" so to speak of WPF and .Net 3.0. I think its a pretty good demonstration of the graphical powers of WPF. Surprisingly, everything displayed (except for the game dialogs and text input box) is done using WPF's powerful data binding model - even the game board - which implemented using a styled version of WPF's built grid controls and content presenters (the gameboard data class is simply a list (colums) of list (rows) of objects.
The move generation (AI) is a singly ply exhaustive search algorithm. The dictionary used is the official scrabble tournament dictionary, known as TWL06 and contains over 160k words (and yes Katie, QAT is a word!)
It is an XBAP application (which means that it runs in your browser) - though you do need the WPF and .Net 3.0 runtime installed.
If you have been following WPF, you might be familiar with blogger Josh Smith
- he has a really good blog on WPF development issues - my application was actually the
for his first ever WPF programming contest.
Basic Instructions and Hints
Select Start Game - and enter your name
- Select Quixotry to play against the computer;
- Select Solitaire to play a 1 person game
- Select Simulation to watch the computer play itself
Hold <ctrl> key down to overlay scoring grid
Use mouse wheel to shuffle the rack
Right click on board to move all loose tiles back to your rack
Commands which can be entered in the command box:
/check [word] : checks to see if a word is in the dictionary
/anagram [letters] : displays a list of anagrams using the letters supplied - use ? for blank tiles
Good luck and have fun with WPF!!!!...