Skip to content

Duels Backend (Matchmaking, Scoring, DB Updates) #23

@yashjagtap23

Description

@yashjagtap23

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.

Metadata

Metadata

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions