{"id":18606090,"url":"https://github.com/tonyhollaar/pong_game","last_synced_at":"2025-08-23T11:14:30.017Z","repository":{"id":204162011,"uuid":"711230737","full_name":"tonyhollaar/pong_game","owner":"tonyhollaar","description":"Classic Pong Game","archived":false,"fork":false,"pushed_at":"2023-10-28T16:26:29.000Z","size":398,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T21:48:21.698Z","etag":null,"topics":["game","oop-concepts","python","turtle"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tonyhollaar.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":"2023-10-28T15:51:38.000Z","updated_at":"2023-10-28T16:10:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"281d5cb5-e107-4cf8-b5ac-048bae9466eb","html_url":"https://github.com/tonyhollaar/pong_game","commit_stats":null,"previous_names":["tonyhollaar/pong_game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tonyhollaar/pong_game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyhollaar%2Fpong_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyhollaar%2Fpong_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyhollaar%2Fpong_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyhollaar%2Fpong_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonyhollaar","download_url":"https://codeload.github.com/tonyhollaar/pong_game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyhollaar%2Fpong_game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746777,"owners_count":24813583,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["game","oop-concepts","python","turtle"],"created_at":"2024-11-07T02:24:15.864Z","updated_at":"2025-08-23T11:14:29.997Z","avatar_url":"https://github.com/tonyhollaar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pong Game\n![Pong Game](https://raw.githubusercontent.com/tonyhollaar/pong_game/master/img/classic%20game%20pong.jpg)\n\nPong Game is a simple implementation of the classic Pong game using Python and the Turtle graphics library. This README provides an overview of the project structure and how the game works.\n\n## Table of Contents\n- [Project Structure](#project-structure)\n- [How the Game Works](#how-the-game-works)\n\n## Project Structure\n\nThe project consists of the following Python files:\n\n- `main.py`: This is the main script that sets up the game, creates the screen, paddles, ball, and game loop.\n- `ball.py`: Contains the `Ball` class responsible for the ball's behavior, movement, and collisions.\n- `paddle.py`: Defines the `Paddle` class, used for both the right and left paddles.\n- `ai_paddle.py`: Extends the `Paddle` class to create an AI-controlled paddle on the left side.\n- `center_line.py`: Handles the center line in the game.\n- `scoreboard.py`: Manages the game's scorekeeping.\n\n## How the Game Works\n\nThe Pong game works as follows:\n\n1. Create a screen with a black background, set to a size of 800x600 pixels.\n2. Create two paddles, one on the right and one on the left, each with a width of 20 and a height of 100.\n3. Create a ball in the center of the screen.\n4. The ball can bounce off the walls, and it bounces differently if it hits a paddle.\n5. The right paddle is controlled by the \"Up\" and \"Down\" arrow keys.\n6. The left paddle is AI-controlled and moves toward the ball's position.\n7. The game keeps track of the score with a scoreboard.\n8. The game continues until one of the paddles misses the ball, at which point the ball is reset and the score is updated.\n9. You can exit the game by clicking on the screen.\n\nFeel free to modify and enhance this Pong game as you see fit. Have fun playing and coding!\n\nEnjoy the game!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonyhollaar%2Fpong_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonyhollaar%2Fpong_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonyhollaar%2Fpong_game/lists"}