{"id":50974422,"url":"https://github.com/coder11125/ai-pong","last_synced_at":"2026-06-19T06:02:52.224Z","repository":{"id":355971957,"uuid":"1230471431","full_name":"coder11125/ai-pong","owner":"coder11125","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-06T03:07:37.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T05:09:44.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://coder11125.github.io/ai-pong/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coder11125.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-06T03:04:13.000Z","updated_at":"2026-05-06T03:10:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coder11125/ai-pong","commit_stats":null,"previous_names":["coder11125/ai-pong"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/coder11125/ai-pong","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder11125%2Fai-pong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder11125%2Fai-pong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder11125%2Fai-pong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder11125%2Fai-pong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder11125","download_url":"https://codeload.github.com/coder11125/ai-pong/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder11125%2Fai-pong/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34519052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2026-06-19T06:02:51.110Z","updated_at":"2026-06-19T06:02:52.209Z","avatar_url":"https://github.com/coder11125.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retro Pong vs AI\n\nA classic Pong game with a retro arcade aesthetic, playable in any modern browser. Face off against an AI opponent in a race to 7 points.\n\n---\n\n## Files\n\n```\nyour-folder/\n├── index.html   # Game canvas and layout\n├── style.css    # Retro styling\n├── game.js      # Game logic and AI\n├── LICENSE      # License - MIT\n└── README.md\n```\n\n---\n\n## How to Play\n\n1. Open `index.html` in any modern browser — no install or build step needed.\n2. Press **Space** or **click** the canvas to start.\n3. First to **7 points** wins.\n\n---\n\n## Controls\n\n| Input | Action |\n|---|---|\n| Mouse | Move paddle |\n| W / Arrow Up | Move paddle up |\n| S / Arrow Down | Move paddle down |\n| Space or Click | Start / Restart |\n\n---\n\n## Gameplay\n\n- You control the **left paddle**, the AI controls the **right**.\n- The ball speeds up slightly with each successful hit.\n- Where the ball hits the paddle affects its bounce angle — hit with the edge to send it at a sharp angle.\n- The AI is beatable — it reacts at a fixed speed and isn't perfect.\n\n---\n\n## Customisation\n\nAll tweakable constants are at the top of `game.js`:\n\n| Constant | Default | Description |\n|---|---|---|\n| `WIN_SCORE` | `7` | Points needed to win |\n| `aiSpeed` | `3.2` | AI paddle speed (higher = harder) |\n| `PAD_H` | `70` | Paddle height in pixels |\n| `BALL_SIZE` | `10` | Ball size in pixels |\n| `GREEN` | `#33ff33` | Main accent color |\n\n---\n\n## Browser Support\n\nWorks in any modern browser that supports the HTML5 Canvas API (Chrome, Firefox, Safari, Edge).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder11125%2Fai-pong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder11125%2Fai-pong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder11125%2Fai-pong/lists"}