{"id":39450,"date":"2022-06-08T16:30:06","date_gmt":"2022-06-08T13:30:06","guid":{"rendered":"https:\/\/kutaybilen.com.tr\/?p=39450"},"modified":"2022-06-08T16:30:06","modified_gmt":"2022-06-08T13:30:06","slug":"sadece-bir-kilobayt-boyuta-sahip-satranc-motoru","status":"publish","type":"post","link":"https:\/\/kutaybilen.com.tr\/?p=39450","title":{"rendered":"Sadece Bir Kilobayt Boyuta Sahip Satran\u00e7 Motoru"},"content":{"rendered":"<p>G\u00fcn\u00fcm\u00fczde kulland\u0131\u011f\u0131m\u0131z neredeyse her ayg\u0131t ve oynad\u0131\u011f\u0131m\u0131z her oyun, sadece birka\u00e7 sat\u0131r da olsa yaz\u0131lan kodlarla \u00e7al\u0131\u015f\u0131yor. Bug\u00fcn kar\u015f\u0131la\u015ft\u0131\u011f\u0131m\u0131z bir taray\u0131c\u0131 oyunuysa, ola\u011fanda \u00e7ok daha fazla sat\u0131rdan olu\u015fmas\u0131 gereken kaynak kodlar\u0131 yerine yaln\u0131zca <strong>birka\u00e7 sat\u0131rl\u0131k kaynak kodla<\/strong> \u00e7al\u0131\u015f\u0131yor. \u00dcstelik oyunun boyutu dahi sundu\u011fu elementlere nazaran bir epey k\u00fc\u00e7\u00fck kal\u0131yor.<\/p>\n<p><strong>Bu ba\u011flant\u0131ya<\/strong> t\u0131klayarak ula\u015fabilece\u011finiz internet sitesinde kar\u015f\u0131n\u0131za son devrin en tan\u0131nan dizilerinden birisi olan Queen&#8217;s Gambit&#8217;in Beth Harmon&#8217;u \u00e7\u0131k\u0131yor. Piksel piksel olu\u015fturulan bu ufak pencere i\u00e7inde &#8220;<strong>The Kilobyte&#8217;s Gambit<\/strong>&#8221; isimli bir oyun yer al\u0131yor. Sayfay\u0131 birinci a\u00e7t\u0131\u011f\u0131n\u0131zda da oyunun en ilgi cazip yan\u0131na vurgu yap\u0131l\u0131yor: &#8220;<strong>1024 baytl\u0131k JavaScript&#8217;i yenebilir misin?<\/strong>&#8220;<\/p>\n<p><b>Yaln\u0131zca 1 kilobaytl\u0131k beyne sahip satran\u00e7 oyunu:<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.webtekno.com\/images\/editor\/default\/0003\/06\/e0ac82e3e60f2b33baf1befc4b255c80342469e3.jpeg\"\/><\/p>\n<p>Evet, taray\u0131c\u0131m\u0131zda g\u00f6rd\u00fc\u011f\u00fcm\u00fcz ve oynad\u0131\u011f\u0131m\u0131z bu oyun, sadece birka\u00e7 sat\u0131rdan olu\u015fan bir <strong>JavaScript dosyas\u0131<\/strong> taraf\u0131ndan y\u00f6netiliyor. <strong>1 kilobayt boyutundaki <\/strong>bu belgenin k\u00fc\u00e7\u00fck boyutunu anlatmak i\u00e7in birtak\u0131m \u00f6rnekler verebiliriz. Oyun, d\u00f6rt Tweet kadar, bir sayfal\u0131k yaz\u0131dan iki kat k\u00fc\u00e7\u00fck, yaz\u0131lardan olu\u015fan k\u0131sa bir e-postayla da \u00e7abucak hemen birebir boyutta.<\/p>\n<p>Elbette oyunun bu kadar k\u00fc\u00e7\u00fck bir beyin sayesinde y\u00f6netilmesi, birtak\u0131m sonlar\u0131 da beraberinde getiriyor. \u00d6rne\u011fin geli\u015ftiriciler, <strong>oyunda kazan\u0131p kaybetti\u011finizi g\u00f6sterebilecek<\/strong> <strong>bir g\u00f6stergeye yer vermiyor.<\/strong> Bu durumlarda sadece iki taraftan birisi hareket edemiyor. Ama bunun d\u0131\u015f\u0131nda oyunun oynan\u0131\u015f\u0131nda hi\u00e7bir sorun ya\u015fanm\u0131yor ve rastgele bir gecikme de g\u00f6r\u00fclm\u00fcyor.<\/p>\n<p>Oyunun 1 kilobaytl\u0131k beyni, <strong>\u00f6n\u00fcndeki d\u00f6rt hamleyi hesaba alabiliyor<\/strong>. Bu hesapta ta\u015flar\u0131n k\u0131ymeti, oyun masas\u0131ndaki g\u00fc\u00e7l\u00fc alanlar ve zaferin ya da ma\u011flubiyetin surat\u0131 \u00fczere fakt\u00f6rler ele al\u0131n\u0131yor. T\u00fcm bunlar\u0131n akabinde beyin, d\u0131\u015f bir i\u015flevi ekran\u0131 g\u00fcncellemek i\u00e7in \u00e7al\u0131\u015ft\u0131r\u0131yor. Bu i\u015flev da akabinde hareketi yapacak imaj kodunu \u00e7al\u0131\u015ft\u0131r\u0131yor. Oyunun beyin kodlar\u0131na da birebir sayfadan eri\u015febilirsiniz.<\/p>\n<div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>G\u00fcn\u00fcm\u00fczde kulland\u0131\u011f\u0131m\u0131z neredeyse her ayg\u0131t ve oynad\u0131\u011f\u0131m\u0131z her oyun, sadece birka\u00e7 sat\u0131r da olsa yaz\u0131lan kodlarla \u00e7al\u0131\u015f\u0131yor. Bug\u00fcn &#8230;<\/p>\n","protected":false},"author":1,"featured_media":39451,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[852],"tags":[920,1030],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/39450"}],"collection":[{"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39450"}],"version-history":[{"count":1,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/39450\/revisions"}],"predecessor-version":[{"id":39452,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/posts\/39450\/revisions\/39452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=\/wp\/v2\/media\/39451"}],"wp:attachment":[{"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kutaybilen.com.tr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}