I am doing some Silverlight experiments and plan to share some application links on this page.
Right now, I have this fascinating (!!!) puzzle game of mine that I want to share.
The application is based on Laurence Moroney’s “Sliding Blocks puzzle” game from the “First Look – Silverlight 2″ book.
Here is my link: Silverlight Picture Puzzle. Have fun!
AUGUST UPDATE: Picture Puzzle updated to Silverlight 2 Beta 2. New source codes are available too!
NOVEMBER UPDATE: Picture Puzzle updated to Silverlight 2 RC. New source codes are available too!
This page has the following sub pages.







[...] Patlak Uzun, hat nun eine Beispielanwendung daraus genommen und weiterentwickelt. Cigedem hat auf http://crocusgirl.wordpress.com/silverlight-experiments/ darüber gebloggt, und möchte auf dieser Seite immer wieder mal neue Silverlight [...]
Hi,
Any chance of getting a code download? Working on a webcam app in Silverlight and would love to use your puzzle as one of the samples
cheers,
Jonas follesø
jonas@follesoe.no
Hallo Crocus Girl,
I’m excited about your puzzle. I still have some trouble solving the 16 pieces version
I’m new in silverlight programming but I will really try to program a tool like yours.
Is it possible to get the source code (maybe for a fee).
Or maybe I can help with my database programming.
best regards
jubi
cologne, germany
Hallo Jubi!
You don’t have to pay anything for the code; you can just download it from SkyDrive.
Here’s the link:
http://crocusgirl.wordpress.com/silverlight-experiments/silverlight-puzzle-sourcecodes-on-skydrive/
Tschuss!
Thanks – great Silverlight app!
I found a small bug in the Page_MouseLeftButtonDown code that allows users to cheat by moving tiles from the bottom row to the top (next column) and vice versa.
I patched this by replacing the if logic to:
int numEdgeTiles = (int) Math.Sqrt(nCanvas);
if ((((nBoardLoc == EmptyLoc + 1) ||
(nBoardLoc == EmptyLoc – 1)) &&
((EmptyLoc+nBoardLoc+1) % numEdgeTiles != 0)) ||
(nBoardLoc == EmptyLoc + numEdgeTiles) ||
(nBoardLoc == EmptyLoc – numEdgeTiles))
{ … // code not changed }
Thanks so much for the info and providing your code:) It seems I need to do a little fix there – oops!