(create-games-from-template division-id
group-id
teams
fields
rounds
games-template)creates games from a Games Template
creates games from a Games Template
(game->losing-team-id {:keys [scoreA scoreB teamA-id teamB-id] :as game})returns the losing team-id from a game if it is final and one team has scored less points than the otherwise nil otherwise (including ties)
returns the losing team-id from a game if it is final and one team has scored less points than the otherwise nil otherwise (including ties)
(game->winning-team-id {:keys [scoreA scoreB teamA-id teamB-id] :as game})returns the winning team-id from a game if it is final and one team has scored more points than the other nil otherwise (including ties)
returns the winning team-id from a game if it is final and one team has scored more points than the other nil otherwise (including ties)
(games->games-list games)Converts games into a list or throws if unable to do so
Converts games into a list or throws if unable to do so
(get-games-played-between-two-teams games teamA-id teamB-id)Returns a hash map of the games played between two teams.
games can either be a list or a map
Returns a hash map of the games played between two teams. games can either be a list or a map
(reset-game g)Resets the values of a Game for a new Event.
Resets the values of a Game for a new Event.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |