{"id":16209903,"url":"https://github.com/jdsherbert/chess","last_synced_at":"2025-04-07T21:17:27.126Z","repository":{"id":181291581,"uuid":"666534731","full_name":"JDSherbert/Chess","owner":"JDSherbert","description":"A simple command-line chess game implemented in C++. It allows you to play against an AI player using basic chess rules.","archived":false,"fork":false,"pushed_at":"2023-11-05T15:11:45.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T22:38:17.757Z","etag":null,"topics":["chess","cplusplus","cpp","minmax-algorithm"],"latest_commit_sha":null,"homepage":"https://linktr.ee/JDSherbert","language":"C++","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/JDSherbert.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-07-14T19:15:55.000Z","updated_at":"2024-08-18T18:53:18.000Z","dependencies_parsed_at":"2023-11-10T12:53:19.597Z","dependency_job_id":null,"html_url":"https://github.com/JDSherbert/Chess","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"b9386bde853339d4a75ae9eecf33b6966a66dddc"},"previous_names":["jdsherbert/chess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FChess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FChess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FChess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JDSherbert%2FChess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JDSherbert","download_url":"https://codeload.github.com/JDSherbert/Chess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247730069,"owners_count":20986404,"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","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","cplusplus","cpp","minmax-algorithm"],"created_at":"2024-10-10T10:33:51.852Z","updated_at":"2025-04-07T21:17:27.102Z","avatar_url":"https://github.com/JDSherbert.png","language":"C++","readme":"![image](https://github.com/JDSherbert/Chess/assets/43964243/bb5c2a73-c100-48ce-ba4f-6dbcd80220f9)\n\n# Chess\n\n\u003c!-- Header Start --\u003e\n  \u003ca href = \"https://learn.microsoft.com/en-us/cpp/cpp-language\"\u003e \u003cimg align=\"left\" img height=\"40\" img width=\"40\" src=\"https://cdn.simpleicons.org/c++\"\u003e \u003c/a\u003e\n\u003cimg align=\"right\" alt=\"Stars Badge\" src=\"https://img.shields.io/github/stars/jdsherbert/Chess?label=%E2%AD%90\"/\u003e\n\u003cimg align=\"right\" alt=\"Forks Badge\" src=\"https://img.shields.io/github/forks/jdsherbert/Chess?label=%F0%9F%8D%B4\"/\u003e\n\u003cimg align=\"right\" alt=\"Watchers Badge\" src=\"https://img.shields.io/github/watchers/jdsherbert/Chess?label=%F0%9F%91%81%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" alt=\"Issues Badge\" src=\"https://img.shields.io/github/issues/jdsherbert/Chess?label=%E2%9A%A0%EF%B8%8F\"/\u003e\n\u003cimg align=\"right\" src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FJDSherbert%2FChess%2Fhit-counter%2FREADME\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026labelColor=0E1128\u0026title=🔍\u0026style=for-the-badge\"\u003e\n  \u003cbr\u003e\u003c/br\u003e\n  -----------------------------------------------------------------------\n  \u003ca href=\"https://learn.microsoft.com/en-us/cpp/cpp-language\"\u003e \n  \u003cimg align=\"top\" alt=\"C++ Console Application\" src=\"https://img.shields.io/badge/C++%20Console%20Application-FFFFFF?style=for-the-badge\u0026logo=visualstudio\u0026color=000000\u0026labelColor=5C2D91\"\u003e \u003c/a\u003e\n\n  \u003ca href=\"https://choosealicense.com/licenses/mit/\"\u003e \n  \u003cimg align=\"right\" alt=\"License\" src=\"https://img.shields.io/badge/License%20:%20MIT-black?style=for-the-badge\u0026logo=mit\u0026logoColor=white\u0026color=black\u0026labelColor=black\"\u003e \u003c/a\u003e\n  \n  -----------------------------------------------------------------------\nThis is a simple command-line chess game implemented in C++. It allows you to play against an AI player using basic chess rules.\n\n## Features\n\n- Human vs AI gameplay\n- Basic chess piece movements (pawn, knight, bishop, rook, queen, king)\n- Valid move checking\n- Alpha-beta pruning for AI player using the Minimax algorithm\n- Evaluation function to assess the board position\n\n## Getting Started\n\nTo compile and run the game, you'll need a C++ compiler installed on your system. Follow these steps:\n\n1. Clone the repository to your local machine:\n\n```shell\n   git clone https://github.com/JDSherbert/Chess.git\n```\nNavigate to the project directory:\n\n```shell\ncd Chess\n```\nCompile the code (exact method will depend on your compiler):\n\n```shell\ng++ -std=c++11 Chess.cpp -o Chess\n```\nRun the game:\n\n```shell\n./chess\n```\nFollow the on-screen instructions to play the game.\n\n## How to Play\nThe chessboard is displayed as an 8x8 grid.\nThe black pieces are represented by Unicode symbols.\nThe white pieces are represented by uppercase letters.\nMoves are entered in the format \"from_square to_square\" (e.g., \"e2 e4\" to move a pawn from e2 to e4).\nThe game alternates between the human player and the AI player.\nThe AI player uses the Minimax algorithm with alpha-beta pruning to make its moves.\n\n### Example Gameplay\n\n```mathematica\n  A  B  C  D  E  F G  H\n1 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜\n2 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟\n3\n4\n5\n6\n7 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙\n8 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖\n\nEnter your move (e.g., 'e2 to e4'): e2 e4\n\n  A  B  C  D  E  F G  H\n1 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜\n2 ♟ ♟ ♟    ♟ ♟ ♟ ♟\n3\n4          ♟\n5\n6\n7 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙\n8 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖\n\nAI moved: g8 f6\n  A  B  C  D  E  F G  H\n1 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜\n2 ♟ ♟ ♟    ♟ ♟ ♟ ♟\n3\n4          ♟\n5\n6               ♘\n7 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙\n8 ♖ ♘ ♗ ♕ ♔ ♗    ♖\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Fchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdsherbert%2Fchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdsherbert%2Fchess/lists"}