Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement AvailableOpponents Controller #26

Open
Atralupus opened this issue Dec 18, 2024 · 0 comments
Open

Implement AvailableOpponents Controller #26

Atralupus opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Atralupus
Copy link
Member

Atralupus commented Dec 18, 2024

Create a REST API controller, AvailableOpponentController,
This controller should enable users to fetch their opponent list and allow resetting the list for a specific interval.

  1. Implement a GetAvailableOpponents endpoint:

    • Route: GET /season/{seasonId}/available-opponents
    • Fetch and return a list of opponents.
  2. Implement a ResetOpponents endpoint:

    • Route: POST /season/{seasonId}/available-opponents
    • Trigger a reset for the opponents list.

Notes

  • The interval resets are handled by a separate worker.

  • Opponents should be grouped and filtered based on rank ranges as per the provided specification:

    Group      Range (as percentage of user’s rank)
    -----------------------------------------------
    Upper 1    20–40%
    Upper 2    40–80%
    Same Rank  80–120%
    Lower 1    120–180%
    Lower 2    180–300%
    

    The endpoint should fetch and return opponents grouped without calculating scores.

@Atralupus Atralupus added this to the NCIP 24 milestone Dec 18, 2024
@Atralupus Atralupus self-assigned this Dec 18, 2024
@Atralupus Atralupus moved this from Todo to In Progress in Nine Chronicles Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

1 participant