{"id":20121665,"url":"https://github.com/ayu-ano/tetris_in_java","last_synced_at":"2026-04-15T12:37:09.369Z","repository":{"id":251940285,"uuid":"838911895","full_name":"ayu-ano/Tetris_in_Java","owner":"ayu-ano","description":"GUI friendly Game Application","archived":false,"fork":false,"pushed_at":"2024-08-06T16:26:49.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T08:34:36.628Z","etag":null,"topics":["java-8","javaawt","javafx","javaswing"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ayu-ano.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-08-06T15:26:23.000Z","updated_at":"2024-09-17T11:03:40.000Z","dependencies_parsed_at":"2024-08-06T18:40:29.131Z","dependency_job_id":null,"html_url":"https://github.com/ayu-ano/Tetris_in_Java","commit_stats":null,"previous_names":["ayu-ano/tetris_in_java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayu-ano/Tetris_in_Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayu-ano%2FTetris_in_Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayu-ano%2FTetris_in_Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayu-ano%2FTetris_in_Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayu-ano%2FTetris_in_Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayu-ano","download_url":"https://codeload.github.com/ayu-ano/Tetris_in_Java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayu-ano%2FTetris_in_Java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["java-8","javaawt","javafx","javaswing"],"created_at":"2024-11-13T19:31:21.423Z","updated_at":"2026-04-15T12:37:09.332Z","avatar_url":"https://github.com/ayu-ano.png","language":"Java","readme":"# Tetris_in_Java\n\n![Tetris Game Screenshot](Tetris/out/one_block.png)\n\n## Overview\nWelcome to the Tetris Game implemented in Java using Swing! This project is a classic Tetris game with a graphical interface, showcasing the use of Java for creating interactive and visually appealing games.\n\n## Features\n- **Classic Tetris Gameplay**: Enjoy the timeless Tetris game mechanics.\n- **Intuitive Controls**: Use the arrow keys to move and rotate the Tetris blocks.\n- **Score Tracking**: Keep track of your score as you clear rows.\n- **Colorful Blocks**: Each block has a distinct color for easy identification.\n- **Game Over Screen**: Displays your final score when the game ends.\n\n## Installation\nTo run the Tetris game on your local machine, follow these steps:\n\n1. **Clone the Repository**:\n    ```bash\n    git clone https://github.com/ayu-ano/tetris-game.git\n    cd tetris-game\n    ```\n\n2. **Compile the Code**:\n    ```bash\n    javac StartTetrisGame.java\n    ```\n\n3. **Run the Game**:\n    ```bash\n    java StartTetrisGame\n    ```\n\n## Usage\n- **Start the Game**: Launch the game using the instructions above.\n- **Controls**:\n    - **Right Arrow**: Move block right\n    - **Left Arrow**: Move block left\n    - **Up Arrow**: Rotate block\n    - **Down Arrow**: Drop block\n\n## Code Structure\n- `TetrisBlock.java`: Defines the Tetris block properties and behaviors.\n- `GameSource.java`: Contains the main game logic and panel for rendering the game.\n- `StartTetrisGame.java`: Entry point to start the Tetris game.\n\n## Screenshots\nInclude some screenshots to give users a visual representation of the game:\n\n### Gameplay\n![Gameplay Screenshot](Tetris/out/blocks.png)  ![Gameplay Screenshot](Tetris/out/perfect_slice.png)\n![Gameplay Screenshot](Tetris/out/disappear.png)\n\n### Terminal Output\n![Terminal Output](Tetris/out/terminal-output.png)\n![Terminal Output](Tetris/out/last_output.png)\n\n### Game Over Screen\n![Game Over Screenshot](Tetris/out/scorecard.png)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayu-ano%2Ftetris_in_java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayu-ano%2Ftetris_in_java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayu-ano%2Ftetris_in_java/lists"}