{"id":26289843,"url":"https://github.com/2bt/vmtetris","last_synced_at":"2025-05-07T22:43:38.889Z","repository":{"id":138955931,"uuid":"66502623","full_name":"2bt/vmTetris","owner":"2bt","description":"Tetris in a small virtual machine (11 lines of C)","archived":false,"fork":false,"pushed_at":"2024-10-27T21:13:58.000Z","size":96,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T15:00:00.662Z","etag":null,"topics":["codegolf","snake","tetris","virtual-machine"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2bt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-24T21:55:23.000Z","updated_at":"2025-01-27T11:09:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8e7ca07-a362-4382-9abc-eaec1c76df09","html_url":"https://github.com/2bt/vmTetris","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2bt%2FvmTetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2bt%2FvmTetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2bt%2FvmTetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2bt%2FvmTetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2bt","download_url":"https://codeload.github.com/2bt/vmTetris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967973,"owners_count":21833245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codegolf","snake","tetris","virtual-machine"],"created_at":"2025-03-14T23:16:35.277Z","updated_at":"2025-05-07T22:43:38.868Z","avatar_url":"https://github.com/2bt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vmTetris\n\nTetris in a small virtual machine.\nUse the cursor keys.\nPress `esc` to quit.\n\n```c\nm[444],c,x;main(o,a){for(system(\"stty cbreak -echo min 0\"),srand(a);o=f();o\u003c42?a\n=(x=o/2%7)\u003c3?x:x\u003c4?f():x\u003c5?m[f()\u003c23?x:m[x-23]]:x\u003c6?read(0,m,1):rand()%f(),m[x=o%\n2?f():m[6]++]*=o\u003c28,a=m[x]+=o\u003e13?a:-a:o\u003c45?putchar(o%3?o%2*75+f():a):o\u003c63?f(),c=\n!a^o/54?x+o%9*75:c:usleep(20000));system(\"stty sane\");}f(){return x=c++[\"NCRM7@\\\nBD;527e4R37Q\u003cQ9M27e@Q:OQ9MQ9Q;MQ9OMQ;Q9B7MQEQ:Q:OM27e^MQEMQ:OQ8KMQEOQ8OMQDMKQ:O\\\nMMQDQ:OQ:P7KMQ;OQ:Q927fDP7MMQ8MQ;Q:27fSRE5RE\u003cQ6D952\u003cffR;\u003cQ62\u003cfr[JZ?[a[y`KT=\u003eT?@\\\nLD2C^_L/V\u003cgE6J/c@6U/g[68?^[D;?2/ggD:=NDTBC2/gm@=2/gs2=P8RE5RF\u003cR;;TL747h?47K25T=\\\n9D;9859_iTA:F?:T=9R26FQ9859_iF59@:26hV`\u003cB7`8RI98=9c@\u003eD`0N8T@?T\u003e=guS825=2;h3252\u003c\\\nh028k7RI=X66DM6R:9T6AF6A29iZX2?T?9F9?F9?RE5RE\u003cTL7=27c@2\u003cisR[5RD\u003c=R9;R97N98L9jJ2\\\n7=2;jA\u003e7k3T5;N558aX25C9T;5\u003e0ji2BT5;T576:7SN456F7jlT;52\u003cj:[JZ?[j[wR[5RD\u003cR;;[JZ?[\\\ncTL7D_7YZQ[O[O=2;kH25[92\u003ckE[JZ?ZQR45TL9l025kq=TL9D_9Y25l0[9n^7/\"]-47;}/********/\n```\n\n![image](tetris.png)\n\nSnake in the same virtual machine.\n\n```c\nm[444],c,x;main(o,a){for(system(\"stty cbreak -echo min 0\"),srand(a);o=f();o\u003c42?a\n=(x=o/2%7)\u003c3?x:x\u003c4?f():x\u003c5?m[f()\u003c23?x:m[x-23]]:x\u003c6?read(0,m,1):rand()%f(),m[x=o%\n2?f():m[6]++]*=o\u003c28,a=m[x]+=o\u003e13?a:-a:o\u003c45?putchar(o%3?o%2*75+f():a):o\u003c63?f(),c=\n!a^o/54?x+o%9*75:c:usleep(20000));system(\"stty sane\");}f(){return x=c++[\"RC5RQ6\\\n326e5R@6T5\u003e3DP5\u003e7eP26e=@7e2RP6D9;26eSR3=N\u003c[JZ?[a[yfcL/V:ek6J/a56U/f3L\u003c6Q\u003c2/f:RQ\\\n\u003c2/f@N\u003c2/fHL\u003c2\u003cF\u003c;TR5^?D35j5@==58]X25C9T95RW5Jy5Jy5Jy5Jy5Jy5Jy5Jy5Jy5TL6fc63:S:\\\nN9T;5S=\u003e9^M251grRC5TL6^fTL7B7^fB7^f46^f@6S68\u003e5^rF\u003e5gP[JZ?[j[wRC5RA:RQ9TL6DQ58L6\\\n_O26_OB6_OZChQ[O6Q5T57TL6=8L6_l26_lB6_lZ`iCP8TL6DQ58L6`A26`AB6`A6R528hnZC`C[OT7\\\n5=29h8[92:h5Z7ZGZSZVZI[i[OR35TL7il25ib=TL7D_7Y25il[9nnnnn\\\\i/\"]-47;}/**********/\n```\n\n![image](snake.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2bt%2Fvmtetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2bt%2Fvmtetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2bt%2Fvmtetris/lists"}