Skip to content

Conversation

@cmyui
Copy link
Owner

@cmyui cmyui commented Feb 7, 2026

No description provided.

Implement a chess game API with the following endpoints:
- GET /api/games - List all games
- GET /api/games/{id} - Get game state with full board
- POST /api/games - Create game (body: W or B for color)
- POST /api/games/{id}/join - Join a waiting game
- POST /api/games/{id}/move - Make a move (body: e2e4 format)

Features:
- Full board representation (64 bytes, one per square)
- Piece movement validation for all 6 piece types
- Turn-based play (white/black alternating)
- Game states: waiting, active, finished
- Board serialized as 64-char string (K=king, Q=queen, etc.)

Based on github.com/cmyui/chess Python implementation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant