Liking cljdoc? Tell your friends :D

com.oakmac.tourney-nerd.results


add-record-to-resultclj/s

(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
sourceraw docstring

add-result-against-teams-with-same-recordclj/s

(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.
sourceraw docstring

compare-upa-tiebreaker-rulesclj/s

(compare-upa-tiebreaker-rules resultA resultB)
source

default-tiebreak-methodclj/s

source

empty-resultclj/s

source

games->resultsclj/s

(games->results teams games)

Returns a list of Results for the given teams + games.

Returns a list of Results for the given teams + games.
sourceraw docstring

games->sorted-resultsclj/s

(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.
sourceraw docstring

loserclj/s

(loser game)

Returns the game-id of the losing team.

Returns the game-id of the losing team.
sourceraw docstring

results->duplicate-recordsclj/s

(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
sourceraw docstring

sort-resultsclj/s

(sort-results results)
(sort-results results sort-method)

Sort a Result list using various tiebreaking methods.

Sort a Result list using various tiebreaking methods.
sourceraw docstring

victory-points-for-a-tieclj/s

source

victory-points-for-a-winclj/s

source

winnerclj/s

(winner game)

Returns the game-id of the winning team.

Returns the game-id of the winning team.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close