{"id":19338225,"url":"https://github.com/jserv/auto-tetris","last_synced_at":"2025-04-23T01:31:22.199Z","repository":{"id":63736149,"uuid":"570312677","full_name":"jserv/auto-tetris","owner":"jserv","description":"Play Tetris game automatically!","archived":false,"fork":false,"pushed_at":"2022-12-13T17:04:52.000Z","size":24,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T22:57:04.778Z","etag":null,"topics":["artificial-intelligence","terminal-based","tetris-clone"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jserv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-24T21:44:34.000Z","updated_at":"2024-02-01T07:02:16.000Z","dependencies_parsed_at":"2023-01-28T13:26:34.661Z","dependency_job_id":null,"html_url":"https://github.com/jserv/auto-tetris","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/jserv%2Fauto-tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fauto-tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fauto-tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fauto-tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jserv","download_url":"https://codeload.github.com/jserv/auto-tetris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352271,"owners_count":21416461,"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":["artificial-intelligence","terminal-based","tetris-clone"],"created_at":"2024-11-10T03:16:42.842Z","updated_at":"2025-04-23T01:31:21.919Z","avatar_url":"https://github.com/jserv.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-tetris\n\nPlay Tetris game automatically!\n\n## Features\n* AI for Tetris\n* Simple ncurses based user interface\n\n## Build and Run\n`auto-tetris` requires [ncurses](https://invisible-island.net/ncurses/).\nDebian/Ubuntu Dependencies:\n```shell\nsudo apt install libncurses5-dev\n```\n\nTo build `auto-tetris`, run `make` inside the directory where you have the source.\n```shell\nmake\n```\n\nTo play the game, run the executable 'tetris'.\n```shell\n./tetris\n```\n\nKey mapping:\n* space: Pause toggle\n* Q: Quit the game\n\n## TODO\n* Replace ncurses with direct terminal I/O. See [libtetris](https://github.com/HugoNikanor/libtetris) for tty graphics.\n* Refine memory management. At present, leaks and buffer overrun exist.\n* Colorize the blocks. [libtetris](https://github.com/HugoNikanor/libtetris) does the elegant work.\n* Allow external programs to train the AI.\n\n## License\n`auto-tetris` is available under a permissive MIT-style license.\nUse of this source code is governed by a MIT license that can be found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fauto-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjserv%2Fauto-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fauto-tetris/lists"}