The Sunday Gewgaw
Monday, August 1st, 2005Well, no graphic novel yet, but I did make a new block sliding puzzle, this time a 4×4. The script is a little more advanced this time, allowing permanent links to the current layout to be created, so you can save/share a particular layout.
For example, I can solve this one in 106 moves, although I’m sure it could be done in fewer. If you can do better, let me know in the comments by pasting the solution string which appears when you solve it.
[ Aw crap, I was so busy adding the permalink feature that it’s not actually Sunday anymore… ]
Once again, feel free to copy the code to make your own puzzles, and let me know if you can see why Safari doesn’t like it [and if it still works with Opera]. I think it’s maybe my crappy use of charCodeAt() …
__________
UPDATE: Code should now work with Safari… the problem was not a scripting issue, just that clicks on the cells were only working when clicking on the space filling character which was there. Have since changed the cells to contain empty DIVs, and that seems to work on all the major browsers.
__________
UPDATE2: how to solve (my solution animated)
August 1st, 2005 at 2:15 am
Yeap, still works great in Opera.
August 1st, 2005 at 3:44 pm
Thanks, I hope the Safari friendly change I just made doesn’t kill it again in Opera!
August 1st, 2005 at 4:57 pm
Nope, what’s online now still works. And, you’re welcome.