{"id":17650879,"url":"https://github.com/yalue/ncurses_tetris","last_synced_at":"2025-10-15T22:14:51.572Z","repository":{"id":188328408,"uuid":"589754754","full_name":"yalue/ncurses_tetris","owner":"yalue","description":"Another one!  Helps me learn to use curses. Served as teaching material for Dr. Bakita's COMP 211 section at UNC-CH, Spring 2023.","archived":false,"fork":false,"pushed_at":"2023-08-14T19:44:01.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T08:26:47.290Z","etag":null,"topics":["c","curses","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yalue.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}},"created_at":"2023-01-16T21:24:07.000Z","updated_at":"2023-06-21T00:06:48.000Z","dependencies_parsed_at":"2023-08-14T22:44:30.964Z","dependency_job_id":"e81e4883-6c42-4332-b7db-d1c15932bd5a","html_url":"https://github.com/yalue/ncurses_tetris","commit_stats":null,"previous_names":["yalue/ncurses_tetris"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yalue/ncurses_tetris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalue%2Fncurses_tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalue%2Fncurses_tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalue%2Fncurses_tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalue%2Fncurses_tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yalue","download_url":"https://codeload.github.com/yalue/ncurses_tetris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yalue%2Fncurses_tetris/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261186369,"owners_count":23121937,"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","curses","ncurses","tetris"],"created_at":"2024-10-23T11:39:42.421Z","updated_at":"2025-10-15T22:14:46.528Z","avatar_url":"https://github.com/yalue.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tetris Using Libncurses\n=======================\n\nA quick exercise to place myself in the elite cabal of programmers who have\nwritten their own versions of tetris.\n\nCompilation\n-----------\n\n - Ensure that `libncurses5-dev` (or the equivalent) is installed.\n\n - Navigate to the top-level directory of this project (the one\n   containing this README).\n\n - Run `make`.\n\nUsage\n-----\n\nAfter compiling, run `./tetris`.\n\nControls:\n\n - On the initial screen (or after a game over), press space to start a new\n   game.\n\n - Left and right arrow keys: move pieces left and right.\n\n - Up arrow: rotate the current piece.\n\n - Down arrow: speed the current piece's descent.\n\n - Page down: Immediately move the current piece down to its landing position.\n\n - The 's' key: quick save (will create the file `./tetris_quicksave.bin`).\n\n - The 'l' key: load last quick save. This will read `./tetris_quicksave.bin`\n   if it exists. Otherwise, pressing 'L' does nothing.\n\n - The 'q' key: quits the game immediately.\n\nTroubleshooting\n---------------\n\nIf the game windows show up as incorrect sizes, make sure your TERM environment\nvariable matches the terminal you're actually using.  For example, in older\nversions of PuTTY, setting TERM=\"xterm\" would cause problems, but TERM=\"putty\"\nwas OK.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalue%2Fncurses_tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyalue%2Fncurses_tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalue%2Fncurses_tetris/lists"}