{"id":25089583,"url":"https://github.com/domin-mnd/tetris","last_synced_at":"2025-04-01T17:23:04.307Z","repository":{"id":274855696,"uuid":"924285454","full_name":"domin-mnd/tetris","owner":"domin-mnd","description":"🕹️ Terminal-based tetris written in C.","archived":false,"fork":false,"pushed_at":"2025-01-30T18:54:10.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T11:17:48.537Z","etag":null,"topics":["c","ncurses","tetris"],"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/domin-mnd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T18:28:54.000Z","updated_at":"2025-01-30T18:54:12.000Z","dependencies_parsed_at":"2025-01-29T19:34:08.253Z","dependency_job_id":"332d9a58-cb6c-4b8b-855a-b43fc1b26c7e","html_url":"https://github.com/domin-mnd/tetris","commit_stats":null,"previous_names":["domin-mnd/tetris"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domin-mnd%2Ftetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domin-mnd%2Ftetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domin-mnd%2Ftetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domin-mnd%2Ftetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domin-mnd","download_url":"https://codeload.github.com/domin-mnd/tetris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679068,"owners_count":20816402,"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":["c","ncurses","tetris"],"created_at":"2025-02-07T11:17:56.145Z","updated_at":"2025-04-01T17:23:04.281Z","avatar_url":"https://github.com/domin-mnd.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Tetris\" src=\"public/preview.gif\" height=\"350\" /\u003e\n\u003c/p\u003e\n\n# Tetris!\n\nThis is a small implementation of terminal-based tetris game written in C using ncurses.h library.\n\n# Controls\n\nThe controls are typical of Tetris:\n\n- \u003ckbd\u003e←\u003c/kbd\u003e \u0026 \u003ckbd\u003e→\u003c/kbd\u003e - moves the tetromino horizontally;\n- \u003ckbd\u003e↑\u003c/kbd\u003e - rotate the tetromino;\n- \u003ckbd\u003e↓\u003c/kbd\u003e - fast drop tetromino;\n- \u003ckbd\u003eSpace\u003c/kbd\u003e - immediately drop tetromino;\n- \u003ckbd\u003eQ\u003c/kbd\u003e - exit the game, without saving the score;\n- \u003ckbd\u003eP\u003c/kbd\u003e - pause the game (press again to resume).\n\n# Installation\n\n\u003e [!NOTE]\n\u003e Executables, compiled using [GitHub Actions](./.github/workflows/build-release.yml) are accessible via [Releases](https://github.com/domin-mnd/tetris/releases) tab.\n\nIf you want to compile the project using source code, here are following prerequisites required:\n\n- ncurses: `pacman -S ncurses` / `apt install libncurses-dev`\n- just: `pacman -S just` / `apt install just`\n\nTo compile the project run `just install`, it would compile the project and output `tetris` file:\n\n```sh\n$ just install\ngcc -Wall -Wextra -Werror -std=c2x -O3 -Isrc/include src/tetris.c src/main.c -o tetris -lncurses\n$ ./tetris\n```\n\n# Credits\n\nThis tetris implementation is \u003ca href=\"https://choosealicense.com/licenses/mit/\"\u003eMIT licensed\u003c/a\u003e 💖\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomin-mnd%2Ftetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomin-mnd%2Ftetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomin-mnd%2Ftetris/lists"}