Skip to content

feat(standings): rounds tiebreaker types#6919

Open
ElectricalBoy wants to merge 7 commits intomainfrom
round-tiebreaker
Open

feat(standings): rounds tiebreaker types#6919
ElectricalBoy wants to merge 7 commits intomainfrom
round-tiebreaker

Conversation

@ElectricalBoy
Copy link
Collaborator

Summary

This PR implements the following tiebreakers:

  • round wins
  • round diff

How did you test this change?

valorant:User:ElectricalBoy/Sandbox2


---@param opponent TiebreakerOpponent
---@return {rounds: integer, w: integer, l: integer}
TiebreakerRoundUtil.getRounds = FnUtil.memoize(function (opponent)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't memoize cause issues if this is used with h2h or ml?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it will really depend on how h2h/ml modes are implemented
if we reconstruct TiebreakerOpponent to have a subset of TiebreakerOpponent.matches for each iteration of h2h/ml tiebreaking then memoizing wouldn't really cause issues
otherwise we might need to kick memoizing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants