(add-record-to-result {:keys [games-won games-lost games-tied] :as result})
Adds a record string to a result
Adds a record string to a result
(add-result-against-teams-with-same-record result
all-results
all-teams
all-games)
Adds a Result map against teams that have the same record. This is UPA tiebreaking rule 2: Won-loss records, counting only games between the teams that are tied.
Adds a Result map against teams that have the same record. This is UPA tiebreaking rule 2: Won-loss records, counting only games between the teams that are tied.
(games->results teams games)
Returns a list of Results for the given teams + games.
Returns a list of Results for the given teams + games.
(games->sorted-results teams games)
(games->sorted-results teams games tiebreak-method)
Returns a sorted list of Results for the given teams + games.
Returns a sorted list of Results for the given teams + games.
(loser game)
Returns the game-id of the losing team.
Returns the game-id of the losing team.
(results->duplicate-records results)
Returns a Set of the duplicate records in a collection of results. ie: which records need tiebreaking logic applied
Returns a Set of the duplicate records in a collection of results. ie: which records need tiebreaking logic applied
(sort-results results)
(sort-results results sort-method)
Sort a Result list using various tiebreaking methods.
Sort a Result list using various tiebreaking methods.
(winner game)
Returns the game-id of the winning team.
Returns the game-id of the winning team.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close