net.alloyggp.tournament.api.Ranking Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ggp-tournament Show documentation
Show all versions of ggp-tournament Show documentation
A library for GGP tournament specification and scheduling.
package net.alloyggp.tournament.api;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSortedSet;
public interface Ranking {
/**
* Returns the players with their corresponding scores for
* the point in the tournament that this ranking represents.
* It is guaranteed that no two players' scores will be the
* same (though this may be due solely to differences in the
* initial seeding).
*/
ImmutableSortedSet getScores();
/**
* Returns the players in the order of the current ranking,
* with the best-performing player in the 0 index.
*/
ImmutableList getPlayersBestFirst();
}