Slide puzzles are one of those ubiqioutous java applets that everyone has seen at one time or another. However, I never found one that did all the stuff I wanted, or did it in an elegant way. Also, some people even thought to charge money for the things.
So, here it is. It's free and you can even look at how I did it if you like. It has a popup menu ( right click ). Double clicking will fire the first option on the menu. If your computer has java runtime and your OS supports it, the JAR file is executable.
You can play the game here.
If your browser's java support isn't up to it, try here.
| Parameter | Type | Description |
|---|---|---|
| cols | Integer | columns in puzzle |
| rows | Integer | rows in puzzle |
| image.url | url | url to image for puzzle |
| image.resource | String | class resource name for puzzle image Used in properties to execute in OS |
| color.empty | Color | color for empty piece |
| color.puzzle | Color | color for puzzle background |
| color.background | Color | color for app background |
If you have the JRE, get the standalone JAR and play it without a browser.
You can download the source code here. This is released under GPL. i.e. don't blame me if anything blows up and enjoy.
This applet is available at The Java Boutique. They said nice things and even gave me a cool icon to put on this page.
Amusingly, when I submitted it to them, number three of their acceptance criteria was, Apps that do something new or interesting. For example, we will not upload any more 4X4 sliding puzzles unless yours is the absolute best we have ever seen. Oops. Needless to say, I was quite happy when they told me they'd uploaded it.