{"id":364,"date":"2023-12-21T08:34:37","date_gmt":"2023-12-21T08:34:37","guid":{"rendered":"https:\/\/idelinjen.jorgenlowenfeldt.se\/?p=364"},"modified":"2023-12-21T08:37:12","modified_gmt":"2023-12-21T08:37:12","slug":"schack","status":"publish","type":"post","link":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/2023\/12\/21\/schack\/","title":{"rendered":"Schack"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"634\" src=\"https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9-1024x634.png\" alt=\"\" class=\"wp-image-365\" srcset=\"https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9-1024x634.png 1024w, https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9-300x186.png 300w, https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9-768x475.png 768w, https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9-1200x742.png 1200w, https:\/\/idelinjen.jorgenlowenfeldt.se\/wp-content\/uploads\/2023\/12\/image-9.png 1272w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nedan ser du koden som utg\u00f6r hj\u00e4rnan till en slimmad schackdator p\u00e5 1024 kb. Kan du vinna mot den? <a href=\"https:\/\/vole.wtf\/kilobytes-gambit\/\">L\u00e4nk<\/a>.<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"><code>for(B=y=u=b=0,x=10,z=15,I=[],l=[];l[B]=(\"ustvrtsuqqqqqqqq\"+\"yyyyyyyy}{|~z|{}@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK IDHGFE\").charCodeAt(B)-64,B++&lt;120;I[B-1]=B%x?B\/x%x&lt;2|B%x&lt;2?7:B\/x&amp;4?0:l[u++]:7);X=(c,h,e,S,s)=&gt;{c^=8;for(var T,o,L,E,D,O=20,G,N=-1e8,n,g,d=S&amp;&amp;X(c,0)&gt;1e4,C,R,A,K=78-h&lt;&lt;9,a=c?x:-x;++O&lt;99;)if((o=I[T=O])&amp;&amp;(G=o&amp;z^c)&lt;7){A=G--&amp;2?8:4;C=9-o&amp;z?l[61+G]:49;do{R=I[T+=l[C]];g=D=G|T+a-e?0:e;if(!R&amp;&amp;(G||A&lt;3||g)||(1+R&amp;z^c)&gt;9&amp;&amp;G|A&gt;2){if(!(2-R&amp;7))return K;for(E=n=G|I[T-a]-7?o&amp;z:6^c;E;E=!E&amp;&amp;!d&amp;&amp;!(g=T,D=T&lt;O?g-3:g+2,I[D]&lt;z|I[D+O-T]|I[T+=T-O])){L=(R&amp;&amp;l[R&amp;7|32]*2-h-G)+(G?0:n-o&amp;z?110:(D&amp;&amp;14)+(A&lt;2)+1);if(S&gt;h||1&lt;S&amp;S==h&amp;&amp;L&gt;2|d){I[T]=n,I[g]=I[D],I[O]=D?I[D]=0:0;L-=X(c,h+1,E=G|A&gt;1?0:T,S,L-N);if(!(h||S-1|B-O|T-b|L&lt;-1e4))return W(I,B=b,c,y=E);E=1-G|A&lt;7|D|!S|R|o&lt;z||X(c,0)&gt;1e4;I[O]=o;I[T]=R;I[D]=I[g];D?I[g]=G?0:9^c:0}if(L&gt;N||!h&amp;L==N&amp;&amp;Math.random()&lt;.5)if(N=L,S&gt;1)if(h?s-L&lt;0:(B=O,b=T,0))return N}}}while(!R&amp;G&gt;2||(T=O,G|A&gt;2|z&lt;o&amp;!R&amp;&amp;++C*--A))}return-K+768&lt;N|d&amp;&amp;N};Y=(V)=&gt;{X(8,0,y,V);X(8,0,y,1)};Z=(U)=&gt;{b=U;I[b]&amp;8?W(I,B=b):X(0,0,y,1)}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nedan ser du koden som utg\u00f6r hj\u00e4rnan till en slimmad schackdator p\u00e5 1024 kb. Kan du vinna mot den? L\u00e4nk. for(B=y=u=b=0,x=10,z=15,I=[],l=[];l[B]=(&#8221;ustvrtsuqqqqqqqq&#8221;+&#8221;yyyyyyyy}{|~z|{}@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK IDHGFE&#8221;).charCodeAt(B)-64,B++&lt;120;I[B-1]=B%x?B\/x%x&lt;2|B%x&lt;2?7:B\/x&amp;4?0:l[u++]:7);X=(c,h,e,S,s)=&gt;{c^=8;for(var T,o,L,E,D,O=20,G,N=-1e8,n,g,d=S&amp;&amp;X(c,0)&gt;1e4,C,R,A,K=78-h&lt;&lt;9,a=c?x:-x;++O&lt;99;)if((o=I[T=O])&amp;&amp;(G=o&amp;z^c)&lt;7){A=G&#8211;&amp;2?8:4;C=9-o&amp;z?l[61+G]:49;do{R=I[T+=l[C]];g=D=G|T+a-e?0:e;if(!R&amp;&amp;(G||A&lt;3||g)||(1+R&amp;z^c)&gt;9&amp;&amp;G|A&gt;2){if(!(2-R&amp;7))return K;for(E=n=G|I[T-a]-7?o&amp;z:6^c;E;E=!E&amp;&amp;!d&amp;&amp;!(g=T,D=T&lt;O?g-3:g+2,I[D]&lt;z|I[D+O-T]|I[T+=T-O])){L=(R&amp;&amp;l[R&amp;7|32]*2-h-G)+(G?0:n-o&amp;z?110:(D&amp;&amp;14)+(A&lt;2)+1);if(S&gt;h||1&lt;S&amp;S==h&amp;&amp;L&gt;2|d){I[T]=n,I[g]=I[D],I[O]=D?I[D]=0:0;L-=X(c,h+1,E=G|A&gt;1?0:T,S,L-N);if(!(h||S-1|B-O|T-b|L&lt;-1e4))return W(I,B=b,c,y=E);E=1-G|A&lt;7|D|!S|R|o&lt;z||X(c,0)&gt;1e4;I[O]=o;I[T]=R;I[D]=I[g];D?I[g]=G?0:9^c:0}if(L&gt;N||!h&amp;L==N&amp;&amp;Math.random()&lt;.5)if(N=L,S&gt;1)if(h?s-L&lt;0:(B=O,b=T,0))return N}}}while(!R&amp;G&gt;2||(T=O,G|A&gt;2|z&lt;o&amp;!R&amp;&amp;++C*&#8211;A))}return-K+768&lt;N|d&amp;&amp;N};Y=(V)=&gt;{X(8,0,y,V);X(8,0,y,1)};Z=(U)=&gt;{b=U;I[b]&amp;8?W(I,B=b):X(0,0,y,1)}<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-lanktips"],"_links":{"self":[{"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":6,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idelinjen.jorgenlowenfeldt.se\/index.php\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}