{"id":13578686,"url":"https://github.com/brenns10/tetris","last_synced_at":"2025-04-09T23:19:31.135Z","repository":{"id":33610000,"uuid":"37262184","full_name":"brenns10/tetris","owner":"brenns10","description":"Tetris in C and NCURSES.","archived":false,"fork":false,"pushed_at":"2019-09-25T23:56:21.000Z","size":106,"stargazers_count":249,"open_issues_count":2,"forks_count":62,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-06T23:46:58.344Z","etag":null,"topics":["c","game","ncurses","sound","tetris"],"latest_commit_sha":null,"homepage":"https://brennan.io/2015/06/12/tetris-reimplementation/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brenns10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-11T13:20:10.000Z","updated_at":"2025-03-29T17:51:18.000Z","dependencies_parsed_at":"2022-07-18T16:52:47.942Z","dependency_job_id":null,"html_url":"https://github.com/brenns10/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/brenns10%2Ftetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Ftetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Ftetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenns10%2Ftetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brenns10","download_url":"https://codeload.github.com/brenns10/tetris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125835,"owners_count":21051811,"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","game","ncurses","sound","tetris"],"created_at":"2024-08-01T15:01:32.887Z","updated_at":"2025-04-09T23:19:31.109Z","avatar_url":"https://github.com/brenns10.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"Tetris\n======\n\n![tetris.gif](tetris.gif)\n\nA tetris game in C using NCURSES.  It's pretty feature complete, except for\nstretch goals I may pick up in my free time.\n\n\nBuilding\n--------\n\nMy dependencies are:\n\n* `libsdl` and `libsdl_mixer` 1.2 for sound.\n* `ncurses` for terminal manipulation.\n\nTo install them on Arch Linux:\n\n    sudo pacman -S sdl_mixer ncurses\n\nTo install them on Ubuntu:\n\n    sudo apt-get install libsdl-mixer1.2-dev libncurses5-dev\n\nTo compile:\n\n    make\n\nTo run:\n\n    bin/release/main\n\nYou will need to provide a file named `tetris.mp3` in the same directory that\nyou're running the game from.  As I understand it, the official Tetris theme\nsong is legally protected in the use of games like this, so I will not be\nproviding or linking to that.  But I'm sure you could find something!  (**You do\nnot need to provide `tetris.mp3` in order to play the game, only if you want\nsound!**).\n\n\nInstructions\n------------\n\nThe controls are typical of Tetris:\n* \u003ckbd\u003e←\u003c/kbd\u003e and \u003ckbd\u003e→\u003c/kbd\u003e: Move the tetromino,\n* \u003ckbd\u003e↑\u003c/kbd\u003e: Rotate (clockwise?) the tetromino,\n* \u003ckbd\u003e↓\u003c/kbd\u003e: Immediately drop the tetromino (not a fast drop, an immediate drop),\n* \u003ckbd\u003eQ\u003c/kbd\u003e: Exit the game prematurely,\n* \u003ckbd\u003eP\u003c/kbd\u003e: Pause the game (any key to resume),\n* \u003ckbd\u003eB\u003c/kbd\u003e: \"Boss mode\" - show a mock terminal screen to fool nosy onlookers.  Hit\n  \u003ckbd\u003eF1\u003c/kbd\u003e to resume the game afterwards.\n* \u003ckbd\u003eS\u003c/kbd\u003e: Save game and exit (just assumes filename `tetris.save`).  To resume the\n  game, run `bin/release/main tetris.save` (or whatever you may have renamed the\n  game save to).\n\n\nFuture/Stretch Goals\n--------------------\n\n* Sound effects (in addition to the theme music).\n* Networked multiplayer!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenns10%2Ftetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrenns10%2Ftetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenns10%2Ftetris/lists"}