Summary
Develop the backend logic for Duels including matchmaking, scoring, and database updates. Provide REST endpoints for creating, accepting, and resolving duels.
Tasks
- Implement
/duels routes for challenge, accept, and resolve.
- Add database schema for users, duel states, and scores.
- Handle matchmaking logic between users.
- Integrate real-time updates or polling for duel status.
- Test all endpoints with mock data.
Acceptance Criteria
- Backend supports full duel lifecycle (challenge → accept → resolve).
- Score updates persist correctly in DB.
- Endpoints respond with proper status codes and error handling.
- Verified working with frontend mock requests.
Notes
- Reference existing user and leaderboard tables.
Summary
Develop the backend logic for Duels including matchmaking, scoring, and database updates. Provide REST endpoints for creating, accepting, and resolving duels.
Tasks
/duelsroutes for challenge, accept, and resolve.Acceptance Criteria
Notes