hawkrobe / reference_games

Conventions in iterated reference games
8 stars 8 forks source link

Parameterize reference games as experiment 'plug-in' #13

Open hawkrobe opened 7 years ago

hawkrobe commented 7 years ago

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

{
  email: ...,
  projectName: ...,
  experimentName: ...,
  iterationName: ...,
  anonymizeCSV: ...,
  dataStore: ...,
  bonusAmt: ...,
  playersThreshold: ...,
  playerRoleNames: ...,
  swapRoles: ...,
  numHorizontalCells: ...,
  numVerticalCells: ...,
  cellDimensions: ...,
  feedbackDelay: ..., 
  autoEnd: ...
}

game.core.js

game.server.js