3.5.4 Matchmaking
(require conscript/matchmaking) | package: conscript |
The bindings in this module are also provided by conscript/base.
procedure
(make-matchmaker group-size) → (-> (-> study-page?) any/c)
group-size : exact-positive-integer
Returns a function that accepts one argument (a study step function) and which adds the current
participant to the current pending group (creating a new group if all other groups are full
already), and then either skips to the next step in the study (if the current group has
group-size members) or loads the step page provided by the argument.
procedure
(get-current-group) → (or/c buid/c #f)
Returns the BUID of the group the current
participant is assigned to, or #f if not currently assigned to any group.