{"id":31714314,"url":"https://github.com/vasa-develop/ai_plays_pyboy","last_synced_at":"2025-10-09T01:19:50.666Z","repository":{"id":285065361,"uuid":"955887676","full_name":"vasa-develop/ai_plays_pyboy","owner":"vasa-develop","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-29T09:12:35.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T09:26:02.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vasa-develop.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":"2025-03-27T11:03:51.000Z","updated_at":"2025-03-29T08:07:53.000Z","dependencies_parsed_at":"2025-03-29T09:36:20.461Z","dependency_job_id":null,"html_url":"https://github.com/vasa-develop/ai_plays_pyboy","commit_stats":null,"previous_names":["vasa-develop/ai_plays_pyboy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vasa-develop/ai_plays_pyboy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasa-develop%2Fai_plays_pyboy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasa-develop%2Fai_plays_pyboy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasa-develop%2Fai_plays_pyboy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasa-develop%2Fai_plays_pyboy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasa-develop","download_url":"https://codeload.github.com/vasa-develop/ai_plays_pyboy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasa-develop%2Fai_plays_pyboy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000725,"owners_count":26082894,"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-10-08T02:00:06.501Z","response_time":56,"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":"2025-10-09T01:19:47.210Z","updated_at":"2025-10-09T01:19:50.658Z","avatar_url":"https://github.com/vasa-develop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Plays PyBoy\n\nA Python project for running Game Boy games using PyBoy emulator. This project is set up to play Tetris on the Game Boy emulator.\n\n## Prerequisites\n\n- Python 3.8 or higher\n- macOS (tested on Apple Silicon M1)\n- Game Boy ROM files (not included in this repository)\n\n## Setup\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/ai_plays_pyboy.git\ncd ai_plays_pyboy\n```\n\n2. Create and activate a virtual environment:\n```bash\npython3 -m venv venv\nsource venv/bin/activate  # On macOS/Linux\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Add your Game Boy ROM files to the project directory:\n   - Place your ROM files (e.g., `tetris.gb`) in the project root\n   - Note: ROM files are not included in this repository due to copyright restrictions\n\n## Usage\n\nTo play Tetris:\n\n```bash\npython3 play_tetris.py\n```\n\n### Controls\n\n- **Arrow Keys**: Move piece left/right\n- **Up Arrow**: Rotate piece\n- **Down Arrow**: Drop piece faster\n- **Space**: Drop piece instantly\n- **Escape**: Quit game\n\nAdditional PyBoy controls:\n- **F11**: Toggle fullscreen\n- **D**: Debug mode\n- **Z**: Save state\n- **X**: Load state\n- **I**: Toggle screen recording\n- **O**: Save screenshot\n\n## Project Structure\n\n- `play_tetris.py`: Main script to run the game\n- `requirements.txt`: Python dependencies\n- `*.gb`: Game Boy ROM files (not included)\n- `*.ram`: Save state files (generated automatically)\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgments\n\n- [PyBoy](https://github.com/Baekalfen/PyBoy) - Game Boy emulator\n- Nintendo - Tetris (Game Boy version) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasa-develop%2Fai_plays_pyboy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasa-develop%2Fai_plays_pyboy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasa-develop%2Fai_plays_pyboy/lists"}