tag:blogger.com,1999:blog-145332831106508186.post5106568634840157099..comments2023-03-19T09:06:24.378-04:00Comments on /var/log/rant: Fun with jQueryDave Jacobhttp://www.blogger.com/profile/15052163927020492687noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-145332831106508186.post-23777877221315565312009-08-31T10:03:00.532-04:002009-08-31T10:03:00.532-04:00My solution, which I have not implemented, would b...My solution, which I have not implemented, would be to take a solver script, throw some random numbers into random position, see if it's solvable from that, and push them in.<br /><br />Problem with that is that the solver is slow. I have one in Perl that I cannot imagine could be much faster, and putting it in Javascript on the client machine would make it slower, and a slow UI is the kiss of death.<br /><br />The solution there is to keep a batch of unsolved puzzles and AJAX 'em into position as needed, perhaps having a crontab run every hour, saying "when the number of unsolved puzzles is less than 100, generate 400 more puzzles".<br /><br />But that's just my take. Good luck in whatever you try.Dave Jacobhttps://www.blogger.com/profile/15052163927020492687noreply@blogger.comtag:blogger.com,1999:blog-145332831106508186.post-1736142312832180622009-08-31T09:18:29.148-04:002009-08-31T09:18:29.148-04:00First of all, great script!
But, how can I generat...First of all, great script!<br />But, how can I generate random combinations each time the page is reloaded so that the puzzle changes?nethttps://www.blogger.com/profile/04065308890527322731noreply@blogger.com