{"id":19330539,"url":"https://github.com/aventhis/brickgame-tetris","last_synced_at":"2026-06-14T12:33:23.383Z","repository":{"id":256719586,"uuid":"855888905","full_name":"aventhis/BrickGame-Tetris","owner":"aventhis","description":"A terminal-based Tetris game inspired by the classic 90s BrickGame consoles. Developed in C, it recreates the original gameplay mechanics.","archived":false,"fork":false,"pushed_at":"2024-09-12T07:56:46.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T08:20:36.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/aventhis.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":"2024-09-11T16:10:03.000Z","updated_at":"2024-09-12T07:56:50.000Z","dependencies_parsed_at":"2024-09-12T18:01:04.382Z","dependency_job_id":"db53b198-1ff8-48eb-9444-11998d704337","html_url":"https://github.com/aventhis/BrickGame-Tetris","commit_stats":null,"previous_names":["aventhis/brickgame-tetris"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2FBrickGame-Tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2FBrickGame-Tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2FBrickGame-Tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aventhis%2FBrickGame-Tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aventhis","download_url":"https://codeload.github.com/aventhis/BrickGame-Tetris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240434244,"owners_count":19800548,"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":[],"created_at":"2024-11-10T02:37:01.993Z","updated_at":"2026-06-14T12:33:18.348Z","avatar_url":"https://github.com/aventhis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BrickGame Tetris\n\n## Introduction\n\nIn this project, a Tetris game was implemented using the C programming language. The main goal was to recreate the Tetris experience from the BrickGame handheld consoles of the 90s. The project consists of two main parts: a library implementing the game logic and a terminal interface that interacts with the user.\n\n## General Information\n\n### BrickGame\n\nThe BrickGame was a popular handheld console that featured many games, including Tetris, Tanks, Racing, Frogger, and Snake. The playing field was 10x20 \"pixels\" with a digital scoreboard displaying the player's progress and game status.\n\n### Tetris\n\nTetris is a famous puzzle game where pieces of various shapes, called tetrominoes, fall from the top of the screen. The objective is to manipulate the falling blocks by moving them left, right, or rotating them to form a solid horizontal line without gaps. Once a line is complete, it disappears, and points are awarded. The game speeds up over time, increasing the challenge.\n\n## Features\n\n- Implemented core mechanics of the Tetris game.\n- A terminal-based interface that provides real-time interaction.\n- Scoreboard and level system.\n- Speed increases as the game progresses.\n\n## Controls\n\n- **Left Arrow**: Move the tetromino to the left.\n- **Right Arrow**: Move the tetromino to the right.\n- **Up Arrow**: Rotate the tetromino.\n- **Down Arrow**: Accelerate the fall of the tetromino.\n- **Spacebar**: Drop the tetromino immediately to the bottom.\n\n## Build Instructions\n\nTo build and run the project, follow these steps:\n\n1. Clone the repository and navigate to the project folder:\n\n    ```bash\n    git clone \u003crepository_url\u003e\n    cd \u003cproject_folder\u003e\n    ```\n\n### Makefile Targets for Tetris Project\n\n- **make all**: This target compiles all source files and builds the terminal version of the Tetris game using the `ncurses` library.\n- **make clean**: This target removes all generated object files and executables, cleaning up the build environment.\n- **make test**: This target compiles and runs unit tests to validate the game logic.\n- **make install**: This target installs the Tetris game to a specified directory.\n- **make uninstall**: This target removes the installed Tetris game from the system.\n- **make dvi**: This target builds documentation for the project.\n- **make dist**: This target packages the project for distribution.\n- **make gcov_report**: This target generates a code coverage report in HTML format using `gcov` for the Tetris game logic.\n\n## Screenshots\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"src/docs/screenshot/Screenshot1.png\" alt=\"Welcome Screen\" width=\"200\"/\u003e\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ctable\u003e\n        \u003ctr\u003e\n          \u003ctd\u003e\u003cimg src=\"src/docs/screenshot/Screenshot2.png\" alt=\"Gameplay\" width=\"200\"/\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003e\u003cimg src=\"src/docs/screenshot/Screenshot3.png\" alt=\"Tetris in action\" width=\"200\"/\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n      \u003c/table\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faventhis%2Fbrickgame-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faventhis%2Fbrickgame-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faventhis%2Fbrickgame-tetris/lists"}