The Sunday Gewgaw

Monday, August 1st, 2005

Well, 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)

feed

3 Comments

  1. Ashwin says:

    Yeap, still works great in Opera.

  2. mark says:

    Thanks, I hope the Safari friendly change I just made doesn’t kill it again in Opera!

  3. Ashwin says:

    Nope, what’s online now still works. And, you’re welcome.

Leave a Comment