{"id":16132969,"url":"https://github.com/Adil-Bikiev/Tetris","last_synced_at":"2025-10-27T20:30:29.220Z","repository":{"id":210520861,"uuid":"726762704","full_name":"EMMMABK/Tetris","owner":"EMMMABK","description":"🕹️ Play classic Tetris! Python-powered with Pygame. Rotate, move, and clear lines! Clone, run 'main.py' to enjoy. Customize shapes, settings. Happy gaming!  🎮🔴","archived":false,"fork":false,"pushed_at":"2025-02-10T07:36:50.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T08:28:42.906Z","etag":null,"topics":["classic-game","gamedev","pygame","python","pythongame","tetris-game"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EMMMABK.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":"2023-12-03T10:27:53.000Z","updated_at":"2025-02-10T07:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"312bb283-9f30-4798-a5a6-10d978e5b3ae","html_url":"https://github.com/EMMMABK/Tetris","commit_stats":null,"previous_names":["emmmabk/tetris"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FTetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FTetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FTetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMMMABK%2FTetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EMMMABK","download_url":"https://codeload.github.com/EMMMABK/Tetris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238550157,"owners_count":19490841,"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":["classic-game","gamedev","pygame","python","pythongame","tetris-game"],"created_at":"2024-10-09T22:35:30.016Z","updated_at":"2025-10-27T20:30:23.827Z","avatar_url":"https://github.com/EMMMABK.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tetris Game 🕹️\n\nThis is a classic Tetris game implemented in Python using the Pygame library. The game offers a traditional Tetris experience with falling tetrominoes that you can control to complete lines and score points.\n\n## Getting Started 🚀\n\n### Prerequisites\n\n- Python 3.x\n- Pygame library\n\n### Installation 🛠️\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/EMMMABK/Tetris.git\n    ```\n\n2. Install the required dependencies:\n\n    ```bash\n    pip install pygame\n    ```\n\n### Running the Game ▶️\n\nNavigate to the project directory and run the following command:\n\n```bash\npython main.py\n```\n\n## Gameplay 🎮\n\n- **Controls:**\n  - Use the `left` and `right` arrow keys to move the falling tetromino sideways.\n  - Press the `up` arrow key to rotate the tetromino clockwise.\n  - Use the `down` arrow key to speed up the falling of tetrominoes.\n  - Press `ESC` to exit the game.\n\n- **Aim:**\n  - Fill complete lines horizontally to make them disappear and earn points.\n  - Avoid reaching the top of the screen; the game ends if the tetrominoes stack up to the top.\n\n## Screenshot\n\n![tetris](./screen/tetris.png)\n\n## Code Structure 🧱\n\nThe project contains the following main files:\n\n- `main.py`: Contains the game's main logic and setup.\n- `settings.py`: Includes various game settings and configurations.\n- `tetris.py`: Manages the Tetris game mechanics and rendering.\n- `tetromino.py`: Defines the tetromino blocks and their behavior.\n\n## Customization 🎨\n\n- **Changing Tetromino Shapes:**\n  - Modify the `TETROMINOES` dictionary in `settings.py` to create different shapes for tetrominoes.\n- **Adjusting Game Settings:**\n  - Explore `settings.py` to tweak game-related constants, such as speed, colors, and screen dimensions.\n\n## Acknowledgments 🙌\n\nSpecial thanks to the Pygame community and the creators of Tetris for the inspiration.\n\nHappy gaming! 🌟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdil-Bikiev%2FTetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdil-Bikiev%2FTetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdil-Bikiev%2FTetris/lists"}