{"id":24407916,"url":"https://github.com/karanbravo/chess_game","last_synced_at":"2026-04-06T21:30:53.823Z","repository":{"id":156363018,"uuid":"544846112","full_name":"karanBRAVO/Chess_Game","owner":"karanBRAVO","description":"In this I have created Chess Game using pygame.","archived":false,"fork":false,"pushed_at":"2024-11-07T18:04:22.000Z","size":335,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T11:27:48.988Z","etag":null,"topics":["chess","chessboard","multiplayer","nodejs","python","socket-io","socketio","typescript"],"latest_commit_sha":null,"homepage":"https://chess-server-tbiv.onrender.com/health","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/karanBRAVO.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":"2022-10-03T10:33:12.000Z","updated_at":"2024-11-07T17:39:45.000Z","dependencies_parsed_at":"2023-12-22T17:30:42.670Z","dependency_job_id":"5e0a5cdd-b6d9-46b7-887a-2317b0505c52","html_url":"https://github.com/karanBRAVO/Chess_Game","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/karanBRAVO/Chess_Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanBRAVO%2FChess_Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanBRAVO%2FChess_Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanBRAVO%2FChess_Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanBRAVO%2FChess_Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karanBRAVO","download_url":"https://codeload.github.com/karanBRAVO/Chess_Game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karanBRAVO%2FChess_Game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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","chessboard","multiplayer","nodejs","python","socket-io","socketio","typescript"],"created_at":"2025-01-20T05:18:18.725Z","updated_at":"2026-04-06T21:30:53.774Z","avatar_url":"https://github.com/karanBRAVO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess_Game v2\n\n- Create a chess game from `0 -\u003e END` `#multiplayer`\n- Using: `Pygame`, `Python`, `Node.js`, `Socket.io`\n\n**_`note`_**: make sure you have installed the `colorama` library before running the script.\n\n- to install the `colorama` library\n\n  ```bash\n  pip install colorama\n  ```\n\n- all the assets are provided in the `chessAssets` directory\n\n## Usage\n\n- clone the repository\n\n  ```bash\n  git clone https://github.com/karanBRAVO/Chess_Game.git\n  ```\n\n- move to the cloned directory\n\n  ```bash\n  cd Chess_Game\n  ```\n\n- move to the chess server directory\n\n  ```bash\n  cd chessServer\n  ```\n\n- install the dependencies and run the build command\n\n  ```bash\n  npm install \u0026\u0026 npm run build\n  ```\n\n- start the server\n\n  ```bash\n  npm run start\n  ```\n\n- run the game script `(you have to run multiple terminals and run below command from the root dir)`\n\n  ```bash\n  chmod +x main.sh \u0026\u0026 ./main.sh\n  ```\n\n## Preview of the Game\n\n![image](https://github.com/karanBRAVO/Chess_Game/assets/77043443/f283403d-c224-4d7b-b38a-61fd14428a2f)\n\n## File Structure\n\n    chessAssets/\n    |\n    chessEngine/\n    |-- assets/\n    |   |-- army/\n    |   |-- chessboard.py\n    |   |-- logger.py\n    |   |-- pieces.py\n    |-- main.py\n    |\n    chessServer/\n\n## Virtual Environment Setup (recommended)\n\n1. Install the `python3-venv`\n\n   ```bash\n   sudo apt install python3-venv\n   ```\n\n2. Create the virtual env.\n\n   ```bash\n   python3 -m venv myenv\n   ```\n\n3. Activate the env.\n\n   ```bash\n   source myenv/bin/activate\n   ```\n\n**note**: to deactivate type _`deactivate`_ in terminal\n\n## Create the desktop application\n\n1. install the module\n\n```bash\npip install pyinstaller\n```\n\n2. run the command\n\n```bash\npyinstaller --onefile --icon=chessEngine/icon.ico --add-data \"chessAssets;chessAssets\" --hidden-import socketio --hidden-import colorama --name=chess chessEngine/main.py\n```\n\n3. run the final output\n\n```\n./dist/chess\n```\n\n### Note\n\nTo fix the path issue while creating the `.exe` file\n\n```python\nimport os\nimport sys\n\n\ndef resource_path(relative_path):\n    \"\"\" Get the absolute path to a resource, works for development and PyInstaller bundling \"\"\"\n    base_path = getattr(sys, '_MEIPASS', os.path.abspath(\".\"))\n    return os.path.join(base_path, relative_path)\n\n# pygame.image.load(resource_path(\"chessAssets/rook.png\"))\n```\n\n### ©️ Karan Yadav 2023\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranbravo%2Fchess_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaranbravo%2Fchess_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaranbravo%2Fchess_game/lists"}