{"id":24779065,"url":"https://github.com/aswajith7077/chess-gui","last_synced_at":"2026-05-06T07:38:23.187Z","repository":{"id":272915857,"uuid":"814063539","full_name":"Aswajith7077/Chess-GUI","owner":"Aswajith7077","description":"A Graphical User Interface (GUI) Chess application in C++, leveraging the SDL2 library for a seamless and interactive user experience, following Object-Oriented Programming (OOP) principles.","archived":false,"fork":false,"pushed_at":"2025-01-17T11:21:59.000Z","size":759,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:30:03.640Z","etag":null,"topics":["chess","cpp","graphics","object-oriented-programming","sdl2","sdl2-image","sdl2-mixer"],"latest_commit_sha":null,"homepage":"","language":"C","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/Aswajith7077.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":"2024-06-12T09:16:00.000Z","updated_at":"2025-01-17T13:09:35.000Z","dependencies_parsed_at":"2025-01-19T23:30:24.714Z","dependency_job_id":null,"html_url":"https://github.com/Aswajith7077/Chess-GUI","commit_stats":null,"previous_names":["aswajith7077/chess-gui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aswajith7077/Chess-GUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aswajith7077%2FChess-GUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aswajith7077%2FChess-GUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aswajith7077%2FChess-GUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aswajith7077%2FChess-GUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aswajith7077","download_url":"https://codeload.github.com/Aswajith7077/Chess-GUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aswajith7077%2FChess-GUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32684051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","cpp","graphics","object-oriented-programming","sdl2","sdl2-image","sdl2-mixer"],"created_at":"2025-01-29T09:35:22.073Z","updated_at":"2026-05-06T07:38:23.153Z","avatar_url":"https://github.com/Aswajith7077.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n# Chess GUI\n\n## Overview\nThis project implements a graphical chess game engine using **C++** with the **SDL2** library. It handles the representation of chess pieces, game logic, and rendering of a chessboard, allowing players to interact with a graphical interface for chess gameplay.\n\n## Features\n- **Graphical Interface**: Utilizes SDL2 and SDL2_image for rendering the chessboard and pieces.\n- **Chess Mechanics**: Implements chess rules, including valid moves for pawns, rooks, knights, bishops, queens, and kings.\n- **Board Setup**: Initializes and displays the chessboard with piece textures for both black and white sides.\n- **Interactive Gameplay**: Supports user interaction with moves, captures, and piece movements using texture-based rendering.\n- **Music \u0026 Sound Effects**: Incorporates sound effects for game events (e.g., moves, captures) with SDL2_mixer.\n\n## Key Components\n- **Game Logic**: Classes for different chess pieces handle move validation, rendering, and interactions.\n- **Rendering System**: `Render_Window` class manages SDL2 rendering operations.\n- **File-Based Assets**: Uses `.png` images for pieces and `.mp3` files for sound effects stored in the `res` directory.\n- **Board Management**: The chessboard is implemented as an 8x8 grid with class-based square management.\n\n## Dependencies\nThe project requires the following SDL2 libraries:\n- **SDL2**\n- **SDL2_image**\n- **SDL2_ttf**\n- **SDL2_mixer**\n\n## How to Run\n1. Install SDL2 and the required SDL2 extensions on your system.\n2. Clone the repository and ensure the `res` folder contains all required assets.\n3. Compile the project using a C++ compiler with SDL2 linked:\n   ```bash\n   g++ Sample.cpp -o ChessGame -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer\n   ```\n4. Run the game:\n   ```bash\n   ./ChessGame\n   ```\n\n## Future Enhancements\n- Add multiplayer functionality (local or online).\n- Implement AI for single-player mode.\n- Expand sound effects and animations for better gameplay experience.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faswajith7077%2Fchess-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faswajith7077%2Fchess-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faswajith7077%2Fchess-gui/lists"}