Tiebreaker
interface Tiebreaker
Internal contract for defining tournament tie-breaking strategies. Implementing classes must define how to calculate a specific score for a player. The interface automatically handles the creation of a descending Comparator based on that score.
Author
lunalobos
Since
1.0.0-beta.8
Properties
Link copied to clipboard
A Comparator that ranks players in descending order (highest score first). It uses the value returned by getValue to compare two Players. The negative sign ensures that players with higher tie-breaker values are sorted to the top of the list.