If you get stumped, come back here and have my program find the answer for you.
I would like to add some code to show the progress on the puzzle board. It’s just an HTML table changed through .style and .nodeValue properties. It would be a nice piece of animated user feedback. I do constantly update the puzzle board in the code but for some reason the browser chooses not to display the updates and only shows the final solution, no intermediates. Actually, this is true for Mozilla/Firefox and Internet Explorer 6 but the lesser known, yet impressive Opera Web Browser does actually show the progress in solving the puzzle - and it still solves it faster than Mozilla! So are Mozilla and IE just buffering their displays for too long? I tried the extremely inefficient loop-that-counts-to-100,000 technique to slow things down but that didn’t help. Then I did a few tests with window.setTimeout() and although it didn’t spike CPU usage to 100% like the previous loop method, it still didn’t change anything - the puzzle board stayed blank and then displayed the full solution. Try it (latest version) for yourself and you’ll see what I mean. If anyone has a suggestion, please post a comment or contact me: email@example.com
No comments yet.
Sorry, the comment form is closed at this time.