Liking cljdoc? Tell your friends :D

com.oakmac.tourney-nerd.advance-event

Advance an event based on games played.

Advance an event based on games played.
raw docstring

advance-eventclj/s

(advance-event event)

Given a tournament state, tries to advance it. ie: calculates Swiss Round matchups, fills brackets, scores pools, etc

Given a tournament state, tries to advance it.
ie: calculates Swiss Round matchups, fills brackets, scores pools, etc
sourceraw docstring

advance-pending-group-resultclj/s

(advance-pending-group-result event pending-game)

TODO: write docstring

TODO: write docstring
sourceraw docstring

create-matchupsclj/s

(create-matchups teams games swiss-round)

Calculates the next Swiss round matchups. Returns a vector of matchups. Each matchup is a vector of [teamA-id teamB-id] The vectors are in-order. ie: the top team is at (ffirst) position

Calculates the next Swiss round matchups.
Returns a vector of matchups. Each matchup is a vector of [teamA-id teamB-id]
The vectors are in-order. ie: the top team is at (ffirst) position
sourceraw docstring

is-swiss-game?clj/s

(is-swiss-game? g)
source

teams-already-played?clj/s

(teams-already-played? teamA-id teamB-id all-games)

Returns false or a game where the two teams have previously played.

Returns false or a game where the two teams have previously played.
sourceraw docstring

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

× close