# Sunday, July 22, 2007

I had no idea that this game would be so popular!  Despite the crappy graphics, it's been referred half a dozen times, and received almost 300 unique hits in the last 24-hours.  Pretty amazing!

Here's the link to Hangman.  Give it a try.  Here's the original Hangman announcement.

There have been a few updates to the original program, including:

  • Includes the definition of the word; calls a .NET web service that parses a web response from Dictionary.com (please let me know if you find problems!)
  • Tracks statistics (e.g. total times played, won, and lost); so far we lose a LOT more 
  • Frees the man from the noose if you win

Yes, they're all silly little updates, but hopefully it increases the enjoyment of the game.

Here are a couple screen shots with the updates.  The first one shows what happens when you die, err, lose.

Hangman; lose

This next one shows what happens when you win.  Doesn't that look a lot more pleasant?

Hangman; winning

This sure is fun stuff to play with.  Now that I feel more comfortable with Silverlight and WPF, there are all kinds of things I'd like to write.  It's a shame I'm not more artistic.

Anyone out there have some mad artistic skills that would like to team up with me?

Best of luck!

posted on Sunday, July 22, 2007 3:08:13 PM (Central Standard Time, UTC-06:00)  #    Comments [2] Trackback
# Saturday, July 21, 2007

Unfortunately I don't have enough time at the moment to write-up a full post that outlines how this works (we have friends coming over for dinner), but I wanted to at least share my very first attempt at a Silverlight and WPF web application.

Check out Hangman!

It's a pretty slick (albeit graphically retarded) Silverlight application.  It uses Microsoft Silverlight 1.1 Alpha (for Windows), and I built it on the work I did devising a strategy to (consistently) win hangman.

Hangman with Silverlight and .NET 3.5

I plan to eventually write a post explaining exactly how I setup my development environment, how the technology within this application functions, and I'll post the source code (once I refactor it).

What do you think?  Have you built any Silverlight applications?

posted on Saturday, July 21, 2007 4:49:47 PM (Central Standard Time, UTC-06:00)  #    Comments [2] Trackback

I was writing a Silverlight application today, when I came across the following error when trying to invoke a web service method from my Silverlight project:

"Error invoking service"

After digging around a little bit, I noticed the following above my web method:

// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]

"Ahh!" I said, as I uncommented the class attribute.

Unfortunately, when I tried to compile I was told:

The type or namespace name 'Script' does not exist in the namespace System.Web' (are you missing an assembly reference?)

So, I went to "Add Reference", added "System.Web.Extensions" to my project, and now it compiles!  And, after testing my web service call from my Silverlight project, the data from the web services is returned to my Silverlight project as expected.

Nice!

posted on Saturday, July 21, 2007 3:24:10 PM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback