Skip to content

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.

3 participants