Great advice! Thanks for adding to the discussion.Thanks for putting this together! It looks very cool so far. I’ll be checking back to see the full plans.
Mark Byer's site has some more Sudoku solvers here's a short one in Python that's only 178 bytes long: def r(a):i=a.find('0');~i or exit(a);[m in[(i-j)%9*(i/9^j/9)*(i/27^j/27|i%9/3^j%9/3)or a[j]for j in range(81)]or r(a[:i]+m+a[i+1:])for m in'%d'%5**18] from sys import*;r(argv[1]) On the site is also shown a longer Perl version at 185 bytes: use integer;sub R{for$i(grep!$A[$_],@x=0..80){%t=map{$_/27-$i/27|$_%9/3-$i%9/3&&amp;amp;$_ /9-$i/9&&($_-$i)%9?0:$A[$_]=>1}@x;R($A[$i]=$_)for grep!$t{$_},1..9;return$A[$i]=0} die@A}@A=split//,<>;R I think the Python version is slightly easier to understand, although they are both quite cryptic. I'm not sure why I find these programs fascinating. I think it reminds me that any program can be written in such a way that it's cryptic, even in Python. In addition, the code is small enough that you should be able to figure out how it works, and may learn something the process. Related is
Marshall Brain has released an online book called " Why Does God Hate Amputees? " He also wrote a scary vision of the future in Robot Nation and is the founder of How Stuff Works . His books is 32 pages and the title comes from this idea, we hear about miracles where tumor or some disease is cured, but...: No matter how many people pray. No matter how sincere those people are. No matter how much they believe. No matter how devout and deserving the recipient. Nothing will happen. The legs will not regenerate. Prayer does not restore the severed limbs of amputees. You can read all the medical journals ever written -- there is no documented case of an amputated leg being restored spontaneously. And we know that God ignores the prayers of amputees through our own observations of the world around us. If God were answering the prayers of amputees to regenerate their lost limbs, we would be seeing amputated legs growing back every day. I haven't finished reading but what I have
Comments