{"id":25430421,"url":"https://github.com/silky-x0/2chess","last_synced_at":"2026-04-10T00:05:21.519Z","repository":{"id":277166875,"uuid":"931502399","full_name":"silky-x0/2chess","owner":"silky-x0","description":"A full Stack Chess game-in making! ","archived":false,"fork":false,"pushed_at":"2025-05-16T17:22:13.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T00:40:14.353Z","etag":null,"topics":["chess","ejs","express","javascript","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/silky-x0.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,"zenodo":null}},"created_at":"2025-02-12T11:41:55.000Z","updated_at":"2025-05-16T17:22:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"d564a718-d8e7-49d6-9e4b-48e6a390b7f7","html_url":"https://github.com/silky-x0/2chess","commit_stats":null,"previous_names":["silky-x0/2chess"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/silky-x0/2chess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silky-x0%2F2chess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silky-x0%2F2chess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silky-x0%2F2chess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silky-x0%2F2chess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silky-x0","download_url":"https://codeload.github.com/silky-x0/2chess/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silky-x0%2F2chess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121951,"owners_count":24702909,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","ejs","express","javascript","nodejs","socket-io"],"created_at":"2025-02-17T03:28:17.664Z","updated_at":"2025-12-30T19:53:37.361Z","avatar_url":"https://github.com/silky-x0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2chess - Real-time Chess Game\n\nA real-time multiplayer chess game built with Node.js, Socket.IO, and Chess.js.\n\n## Project Structure\n```\n2chess/\n├── views/\n│   └── index.ejs          # Chess game interface\n├── public/\n│   └── js/\n│       └── chessGame.js   # Client-side game logic\n├── app.js                 # Server entry point\n├── package.json\n└── README.md\n```\n\n## Technology Stack\n\n### Core\n- Node.js + Express.js for server\n- Socket.IO for real-time gameplay\n- Chess.js for game logic\n- EJS for templating\n\n### Features\n- Real-time multiplayer chess\n- Drag and drop piece movement\n- Role-based gameplay (white/black/spectator)\n- Automatic board flipping for black player\n- Unicode chess pieces\n- Move validation\n\n## Game Features\n\n### Implemented\n- [x] Two-player game support\n- [x] Spectator mode\n- [x] Real-time move updates\n- [x] Valid move enforcement\n- [x] Player turn management\n- [x] Drag and drop interface\n- [x] Responsive chessboard\n\n### Socket Events\n- `playerRole` - Assigns white/black role\n- `spectatorRole` - Assigns spectator status\n- `move` - Handles piece movements\n- `boardState` - Syncs game state\n- `invalid Move` - Handles invalid moves\n\n## Setup Instructions\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/silky-x0/2chess.git\ncd 2chess\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Start the server:\n```bash\nnode app.js\n```\n\n4. Access the game:\n- Open `http://localhost:3000` in your browser\n- First player gets white pieces\n- Second player gets black pieces\n- Additional connections become spectators\n\n## Dependencies\n- express: ^5.1.0\n- socket.io: ^4.8.1\n- chess.js: ^1.2.0\n- ejs: ^3.1.10\n\n## Technical Details\n\n### Client-Side\n- Manages game UI and piece movement\n- Handles drag and drop interactions\n- Updates board visualization\n- Communicates with server via Socket.IO\n\n### Server-Side\n- Manages player connections\n- Validates moves using Chess.js\n- Broadcasts game state updates\n- Handles player roles and turns\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Open a Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilky-x0%2F2chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilky-x0%2F2chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilky-x0%2F2chess/lists"}