{"id":20944568,"url":"https://github.com/intothevoid/knightfight","last_synced_at":"2026-04-26T19:32:30.752Z","repository":{"id":65758712,"uuid":"595108435","full_name":"intothevoid/knightfight","owner":"intothevoid","description":"A game of Chess written in Python","archived":false,"fork":false,"pushed_at":"2023-04-27T05:28:39.000Z","size":49522,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T08:35:05.573Z","etag":null,"topics":["chess","game","piece-square-tables","pychess","pygame","pygame-games","python-chess","retro","stockfish"],"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/intothevoid.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-01-30T12:15:10.000Z","updated_at":"2023-03-20T05:24:00.000Z","dependencies_parsed_at":"2024-11-18T23:45:10.473Z","dependency_job_id":"be6fb567-9e2f-4a6d-b60f-97e064613b1e","html_url":"https://github.com/intothevoid/knightfight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/intothevoid/knightfight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intothevoid%2Fknightfight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intothevoid%2Fknightfight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intothevoid%2Fknightfight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intothevoid%2Fknightfight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intothevoid","download_url":"https://codeload.github.com/intothevoid/knightfight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intothevoid%2Fknightfight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":["chess","game","piece-square-tables","pychess","pygame","pygame-games","python-chess","retro","stockfish"],"created_at":"2024-11-18T23:42:43.292Z","updated_at":"2026-04-26T19:32:30.728Z","avatar_url":"https://github.com/intothevoid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knight Fight\n\n\u003e \"Join the battle as a valiant knight, outsmart your opponent, and capture the enemy's king in this strategic and knightly game of Knight Fight Chess.\"\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/title_screen.png\" width=\"70%\" height=\"70%\"\u003e\u003c/img\u003e\n\nPlay chess on a pixelated retro board. Play against a CPU player or another friend.\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/sshot.png\" width=\"70%\" height=\"70%\"\u003e\u003c/img\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/sshot_go.png\" width=\"70%\" height=\"70%\"\u003e\u003c/img\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/sshot_settings.png\" width=\"70%\" height=\"70%\"\u003e\u003c/img\u003e\n\nGrid lines and positions overlay (configurable)\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/sshot_debug.png\" width=\"70%\" height=\"70%\"\u003e\u003c/img\u003e\n\n\n## Features\n1. Multiple modes - Human v Human, CPU v Human, CPU vs CPU \n2. Follows standard Chess rules (Now powered by python-chess)\n3. Retro sound effects and music!\n4. Lots of configurable options\n5. Debug mode to highlight positions and grid\n6. Undo last move (press Ctrl+Z)\n7. Change board styles\n8. Multiplayer API available. See https://www.github.com/intothevoid/chessapi for details.\n9. Animated CPU piece moves\n10. Retro title menu with options to save and load games\n11. Smarter CPU player with multiple chess engines supported:\n    - Stockfish\n    - OpenAI API\n    - Piece Squares (Uses minimax algorithm)\n    - Piece Squares v2 (Uses minimax algorithm) - Default\n    - Basic Random Moves\n12. Show possible moves for selected piece, and last move made\n\n## Installation\n\n```bash\ngit checkout git@github.com:intothevoid/knightfight.git\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Usage\n\n```bash\npython3 main.py\n```\n\n## Optional - Use Stockfish (Powerful Chess Engine)\n\nIf you would like to play against a stronger CPU player, you can install Stockfish. Stockfish is a free, open source chess engine. It is the strongest chess engine in the world. \n\n1. Go to https://stockfishchess.org/download/ and download your version of the Stockfish chess engine\n2. Copy the binary to assets/engines/stockfish (assets\\engines\\stockfish.exe for Windows)\n3. Update the path in config.yml as shown below\n\n### config.yml - Windows\n```\ncpu:\n    stockfish_path: assets/engines/stockfish.exe\n```\n\n### config.yml - MacOS / Linux\n```\ncpu:\n    stockfish_path: assets/engines/stockfish\n```\n\n## Optional - Use OpenAI API (GPT 3.5 powered chess engine)\n\nIf you would like to play against OpenAI's GPT 3.5 powered chess engine, you can install the OpenAI API. OpenAI is a powerful AI API that can be used to generate text, images, and more.\n\n1. Set up an OpenAI account at https://beta.openai.com/\n2. Copy your API key to config.yml as shown below OR setup an environment variable called OPENAI_API_KEY\n3. Update the path in config.yml as shown below (chess engine option)\n\n### config.yml (OpenAI settings)\n```\ncpu:\n    ai: openai\n    openai_api_key: \u003cyour api key here\u003e\n```\n\n## Powered By\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/pygame.png\" height=\"25%\" width=\"25%\"\u003e\u003c/img\u003e\n\nPyGame https://www.pygame.org/\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/openai.jpg\" height=\"25%\" width=\"25%\"\u003e\u003c/img\u003e\n\nOpenAI https://www.ai.com/\n\n\u003cimg src=\"https://raw.githubusercontent.com/intothevoid/knightfight/main/assets/images/stockfish.png\" height=\"25%\" width=\"25%\"\u003e\u003c/img\u003e\n\nStockfish https://github.com/official-stockfish/Stockfish\n\nStockfish GPL 3.0 License - See https://github.com/official-stockfish/Stockfish/blob/master/Copying.txt\n\nStockfish Source Code - https://github.com/official-stockfish/Stockfish/tree/master/src\n\nDani Maccari's image assets https://dani-maccari.itch.io/\n\nMusic assets by wyver https://wyver9.itch.io/8-bit-beatem-up-soundtrack\n\nMidjourney - Knight Fight Splash Image https://midjourney.com/\n\npython-chess - https://python-chess.readthedocs.io/en/latest/\n\nSimplified Evaluation Function - https://www.chessprogramming.org/Simplified_Evaluation_Function \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintothevoid%2Fknightfight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintothevoid%2Fknightfight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintothevoid%2Fknightfight/lists"}