What can I say? I haven’t degenerated into one of those useless people with a domain name and a blog and nothing to say, you know who you are! Haha. I’ve been really busy, with my last semester of school and whatnot. Without further ado, here is a 15-puzzle solver I’ve been creating, it’s almost done. Any bug reports would be appreciated. I know, it’s no excuse for slacking off, but I must leave my Wolkenkuckucksheim and apply for a real job soon and enter the blistering torrent of humdrum that is a working Joe’s life. Or not, we shall see.
Here’s the 15-puzzle if you want to play it: My 15-Puzzle
The puzzle can be played by clicking the “Scramble” button or by loading a predefined board. The format for a file with a predefined board is 4 lines of digits separated by a space, with a 0 for the blank spot, as so:
2 3 4 5
7 14 13 12
10 0 8 9
1 6 11 15
Here’s an explanation of the rules: 15 puzzle
My puzzle doesn’t cache any of the results and the random scramble isn’t skewed, well as un-skewed as you can get on a regular PC. This is unlike a lot of sites where the “Random” simply repeats one out of a finite set of cached puzzles.
I’ll post the source code in a couple of weeks.

Related Articles
2 users responded in this post
hey.. could you add it now? cuz i really need it. thx
Hey lilman,
You can find the source code at http://www.viren.ca/blog/15-puzzle-source-code-in-c-with-mfc/
Leave A Reply