e.g. to work with something like Dallinger, factoring out templates and shared code such that a full experiment could be specified in a fairly short file exporting a fairly small set of functions.
To specify a particular ref game, you'd need to have a config.json and separately export the following functions:
e.g. to work with something like Dallinger, factoring out templates and shared code such that a full experiment could be specified in a fairly short file exporting a fairly small set of functions.
To specify a particular ref game, you'd need to have a config.json and separately export the following functions:
config options
game.core.js
trialList
: the sequence of stimuli/metadata passed to participants on each roundnewRound
: called to terminate the current round and begin the nextcommunicationModality
: unrestricted chat-box, sketchpad, word-liststimulusDisplay
: how to show stimuli fromtrialList
game.server.js
dataOutput
: json of data to record upon different events (e.g. 'message', 'listenerClick')onMessage
: collection ofsocket.io
event-handlers for client messages