{"id":18016655,"url":"https://github.com/layyser/light-chess","last_synced_at":"2026-05-07T08:32:32.507Z","repository":{"id":256084699,"uuid":"852912760","full_name":"Layyser/Light-Chess","owner":"Layyser","description":"Simple C++ chess GUI with web integration and Stockfish WASM port","archived":false,"fork":false,"pushed_at":"2024-12-27T04:14:43.000Z","size":685,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T01:19:17.781Z","etag":null,"topics":["chess-game","chessboard","cpp","deployed","stockfish-js","wasm","web","webassembly"],"latest_commit_sha":null,"homepage":"https://layyser.github.io/Light-Chess/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Layyser.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":"2024-09-05T16:38:07.000Z","updated_at":"2024-12-27T04:14:47.000Z","dependencies_parsed_at":"2024-09-08T22:41:30.735Z","dependency_job_id":"1b0a9d1f-8412-4bb5-a2a3-9a83dd05ea9b","html_url":"https://github.com/Layyser/Light-Chess","commit_stats":null,"previous_names":["layyser/light-chess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layyser%2FLight-Chess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layyser%2FLight-Chess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layyser%2FLight-Chess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Layyser%2FLight-Chess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Layyser","download_url":"https://codeload.github.com/Layyser/Light-Chess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247202072,"owners_count":20900713,"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-game","chessboard","cpp","deployed","stockfish-js","wasm","web","webassembly"],"created_at":"2024-10-30T04:18:48.995Z","updated_at":"2026-05-07T08:32:32.502Z","avatar_url":"https://github.com/Layyser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess Project Documentation\n\n## Introduction\nThis project is a **browser-based chess game** built using **C++** and **Emscripten**. It features a functional and user-friendly interface designed with **HTML**, **CSS**, and **JavaScript**. While the initial goal was to create a chess game entirely in C++, I decided to leverage **WebAssembly (WASM)** to bring the project to the web, creating an engaging visual experience.\n\nThe core chess logic resides in `chess.hh` and `chess.cc`, which can also be reused in other C++ chess applications. This project demonstrates a balance between performance and usability, integrating advanced features while maintaining simplicity.\n\n\n## Features\n- **Full Chess Rules**: All standard chess rules are implemented, including special moves like castling, en passant, and pawn promotion.\n- **WebAssembly for Performance**: The game logic is compiled into **WebAssembly** for seamless execution in modern browsers.\n- **Stockfish Integration**: A **Stockfish engine** (ported to WASM) is included, allowing users to play against the computer or adjust difficulty via a settings tab.\n- **Responsive UI**: A clean and simple UI designed for both desktop and mobile browsers, with draggable pieces and a visual representation of the game state.\n\n## Compile\nTo compile and run the project locally, follow these steps:\n\n1. **Install Emscripten**: Ensure you have the Emscripten SDK installed. You can follow the instructions [here](https://emscripten.org/docs/getting_started/downloads.html).\n   \n2. **Compile the Code**: Run the following command to compile the C++ code into WebAssembly or directly use `chess.js` and `chess.wasm`:\n   ```bash\n   make\n3. **Run Locally**: Run a static server in http://localhost:8000 for example with:\n   ```bash\n   python -m http.server 8000\n## Documentation\nThis project utilizes a combination of open-source tools and assets. Below are links to the key components and resources used:\n- [Emscripten documentation](https://emscripten.org) — Documentation for compiling C++ into WebAssembly.\n- [Stockfish.js](https://github.com/lichess-org/stockfish.js) — A WebAssembly port of the Stockfish chess engine.\n- [Chess Piece SVGs](https://commons.wikimedia.org/w/index.php?curid=1499811) — Chess piece graphics designed by Cburnett, used under a Creative Commons license.\n\n## Acknowledgements\nSpecial thanks to:\n- **Lichess.org** for providing the WebAssembly port of the Stockfish engine, which enhances the gameplay experience.\n- **Cburnett** for designing the beautiful chess piece SVGs that are used in this project.\n\n## License\nThis project is licensed under the [GNU General Public License v3.0](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayyser%2Flight-chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayyser%2Flight-chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayyser%2Flight-chess/lists"}