{"id":20190061,"url":"https://github.com/0xbitbuster/python-chess-engine","last_synced_at":"2026-06-08T19:31:07.552Z","repository":{"id":160096698,"uuid":"628045412","full_name":"0xBitBuster/python-chess-engine","owner":"0xBitBuster","description":"Python-based (pygame) chess engine","archived":false,"fork":false,"pushed_at":"2023-05-01T21:55:25.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T22:12:37.366Z","etag":null,"topics":["chess","game","pygame","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/0xBitBuster.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-04-14T19:29:32.000Z","updated_at":"2024-07-19T11:39:33.000Z","dependencies_parsed_at":"2023-06-02T21:30:29.426Z","dependency_job_id":null,"html_url":"https://github.com/0xBitBuster/python-chess-engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xBitBuster/python-chess-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBitBuster%2Fpython-chess-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBitBuster%2Fpython-chess-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBitBuster%2Fpython-chess-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBitBuster%2Fpython-chess-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xBitBuster","download_url":"https://codeload.github.com/0xBitBuster/python-chess-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xBitBuster%2Fpython-chess-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34078019,"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-08T02:00:07.615Z","response_time":111,"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":["chess","game","pygame","python"],"created_at":"2024-11-14T03:40:25.910Z","updated_at":"2026-06-08T19:31:07.508Z","avatar_url":"https://github.com/0xBitBuster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Chess Engine with AI\n\n![Showcase Image](https://i.ibb.co/XbLzmW6/Screenshot-1.png)\n\nThis is a Python-based (pygame) chess engine that allows users to play against a computer opponent or a second player. The engine follows the standard rules of chess and features somewhat efficient move generation using the nega max algorithm. It also includes a beautiful GUI with valid move visualization and a move log.\n\n## Features\n- [x] **Chess Rules**: The engine follows the standard rules of chess including enpassant, castling and moving the pieces\n- [x] **AI**: Play against your computer using the nega max algorithm which finds the best possible move recursively using alpha beta pruning\n- [x] **GUI**: The project makes use of the pygame library to create a beautiful graphical user interface and draw text, rectangles and images onto the screen.\n- [x] **Extras**: such as undoing a move, sound effects and a move log\n\n## Getting Started\n### Prerequisites\n- Python 3\n\n### Installation\n1. Clone the repository to your local machine:\n```bash\ngit clone https://github.com/0xBitBuster/python-chess-engine.git\n```\n2. Install all requirements using pip:\n```\npip3 install -r requirements.txt\n```\n\n### Usage\nTo start the game you can either do it in your IDE or manually:\n```bash\npython3 ChessMain.py\n```\n\n## Quick Note / Todo\nThis code does not use the python best practice for the naming convention (The project uses camelCasing instead of lowercase_underscore). You can also try to optimize the negamax and find valid moves algorithm. Maybe even create a UI to select wether you want to play against the computer or another player.\n\n## Contributing\nContributions are welcome! If you have a feature request or bug report, please open an issue. If you want to contribute code, please fork the repository and submit a pull request.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xbitbuster%2Fpython-chess-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xbitbuster%2Fpython-chess-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xbitbuster%2Fpython-chess-engine/lists"}